diff --git a/specification/mediaservices/cspell.yaml b/specification/mediaservices/cspell.yaml deleted file mode 100644 index 9182a34c6471..000000000000 --- a/specification/mediaservices/cspell.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# This file configures spell checking. Items in "words" were initially populated -# with words that might be spelling errors. Review these words and take -# appropriate action. For more information, see: https://aka.ms/ci-fix#spell-check - -# Spell checking is not case sensitive -# Keep word lists in alphabetical order so the file is easier to manage -version: '0.2' -import: - - ../../cspell.yaml -words: - - accountn - - cabac - - cavlc - - cbcs - - cenc - - cmaf - - contentk - - contosomedia - - deinterlace - - deinterlacing - - diarization - - filterna - - kbps - - liveoutp - - muxed - - muxer - - nodrm - - psnr - - rtmp - - rtsp - - scms - - streamin - - unsubstituted - diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Accounts.json deleted file mode 100644 index 171484c88177..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Accounts.json +++ /dev/null @@ -1,744 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-03-30-preview" - }, - "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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsExtensible": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "SubscriptionMediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - }, - "SubscriptionMediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionMediaService" - }, - "description": "A collection of SubscriptionMediaService 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 SubscriptionMediaService items." - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The Version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Common.json deleted file mode 100644 index 3140d12d8964..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2018-03-30-preview" - }, - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-check-name-availability.json deleted file mode 100644 index b7b88c5076da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-create.json deleted file mode 100644 index 91ad5f029386..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-03-30-preview", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-delete.json deleted file mode 100644 index 65a89864b63f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-get-by-name.json deleted file mode 100644 index eb25d616000a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json deleted file mode 100644 index 4206c3bc5bcd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index 037780538a17..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 1aaaf1fb839f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json deleted file mode 100644 index fe0db4ce798d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-03-30-preview", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-update.json deleted file mode 100644 index f92e6114dd39..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/accounts-update.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-03-30-preview", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/operations-list-all.json deleted file mode 100644 index cd98a866b0ef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-03-30-preview/examples/operations-list-all.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Accounts.json deleted file mode 100644 index a0504dd205c2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Accounts.json +++ /dev/null @@ -1,780 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-06-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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsExtensible": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "SubscriptionMediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "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." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - }, - "SubscriptionMediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionMediaService" - }, - "description": "A collection of SubscriptionMediaService 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 SubscriptionMediaService items." - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The Version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Common.json deleted file mode 100644 index 8163d87ee174..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2018-06-01-preview" - }, - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-check-name-availability.json deleted file mode 100644 index 4854b4fa231c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-create.json deleted file mode 100644 index fab4f55bf8a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-06-01-preview", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-delete.json deleted file mode 100644 index b30b0511bb70..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-get-by-name.json deleted file mode 100644 index 237fd02f35dc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json deleted file mode 100644 index fa0263497644..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index ac3469354d4a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 01de2d995eb2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 6b0ca53a8b8f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-06-01-preview", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-update.json deleted file mode 100644 index eb87fb24aea6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/accounts-update.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-06-01-preview", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/operations-list-all.json deleted file mode 100644 index 2ac2230b88f8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2018-06-01-preview/examples/operations-list-all.json +++ /dev/null @@ -1,501 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Accounts.json deleted file mode 100644 index 6400418515d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Accounts.json +++ /dev/null @@ -1,923 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "Metric": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "description": "The metric dimensions.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "ServiceSpecification": { - "properties": { - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/Metric" - }, - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "MetricProperties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "Metric properties." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/MetricProperties", - "description": "Operation properties format." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "SubscriptionMediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "./Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "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." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - }, - "SubscriptionMediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionMediaService" - }, - "description": "A collection of SubscriptionMediaService 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 SubscriptionMediaService items." - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The Version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Common.json deleted file mode 100644 index 8ffd3bd1f71a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-check-name-availability.json deleted file mode 100644 index 4ef7fa721199..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-create.json deleted file mode 100644 index 3451dc6b0572..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-delete.json deleted file mode 100644 index c881a84854c0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-get-by-name.json deleted file mode 100644 index 4ae9745f6b2a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-list-all-accounts.json deleted file mode 100644 index 2f59e9cae5ef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index 665c0edcd6bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 07e64ecaadba..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-sync-storage-keys.json deleted file mode 100644 index ea9b54b7ffd8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-update.json deleted file mode 100644 index 0d4396b72abe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/accounts-update.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/operations-list-all.json deleted file mode 100644 index 7426d00e6230..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-05-01-preview/examples/operations-list-all.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Count", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/Common.json deleted file mode 100644 index a940d0c41995..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2019-09-01-preview" - }, - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/MediaGraphs.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/MediaGraphs.json deleted file mode 100644 index 947796666ecd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/MediaGraphs.json +++ /dev/null @@ -1,757 +0,0 @@ -{ - "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" - ], - "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 by name": { - "$ref": "examples/media-graph-get-by-name.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" - } - }, - "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": { - "$ref": "examples/media-graph-start.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": { - "$ref": "examples/media-graph-stop.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-create.json deleted file mode 100644 index a09d494e78fe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "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" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-delete.json deleted file mode 100644 index 70f175487496..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2019-09-01-preview" - }, - "responses": { - "204": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-get-by-name.json deleted file mode 100644 index 371fc45ce350..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-get-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph1", - "api-version": "2019-09-01-preview" - }, - "responses": { - "404": {}, - "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/Accounts/preview/2019-09-01-preview/examples/media-graph-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-list-all.json deleted file mode 100644 index acb0a13f999b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-list-all.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "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" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-start.json deleted file mode 100644 index 10c0783ddff3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2019-09-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-stop.json deleted file mode 100644 index 10c0783ddff3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/media-graph-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2019-09-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-result-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-result-get.json deleted file mode 100644 index 7a528e212c6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-result-get.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "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": {} - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-status-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-status-get.json deleted file mode 100644 index 1e3ee9bda64d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2019-09-01-preview/examples/operation-status-get.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "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" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/Common.json deleted file mode 100644 index 1745b2883a4b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2020-02-01-preview" - }, - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/MediaGraphs.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/MediaGraphs.json deleted file mode 100644 index 99be93a8ab89..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/MediaGraphs.json +++ /dev/null @@ -1,901 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-02-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 which indicates the resource allocation status for running the media graph pipeline.", - "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": { - "transport": { - "type": "string", - "enum": [ - "Http", - "Tcp" - ], - "x-ms-enum": { - "name": "MediaGraphRtspTransport", - "values": [ - { - "value": "Http", - "description": "HTTP/HTTPS transport. This should be used when HTTP tunneling is desired." - }, - { - "value": "Tcp", - "description": "TCP transport. This should be used when HTTP tunneling is not desired." - } - ], - "modelAsString": true - }, - "description": "Underlying RTSP transport. This can be used to enable or disable HTTP tunneling." - }, - "endpoint": { - "$ref": "#/definitions/MediaGraphEndpoint", - "description": "RTSP endpoint of the stream being connected to." - } - }, - "type": "object", - "required": [ - "transport", - "endpoint" - ], - "description": "RTSP source." - }, - "MediaGraphEndpoint": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "credentials": { - "$ref": "#/definitions/MediaGraphCredentials", - "description": "Polymorphic credentials to present to the endpoint." - }, - "url": { - "type": "string", - "description": "Url for the endpoint." - } - }, - "type": "object", - "required": [ - "@odata.type", - "url" - ], - "description": "Base class for endpoints." - }, - "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." - }, - "MediaGraphCredentials": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Credentials to present during authentication." - }, - "MediaGraphUsernamePasswordCredentials": { - "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphUsernamePasswordCredentials", - "allOf": [ - { - "$ref": "#/definitions/MediaGraphCredentials" - } - ], - "properties": { - "username": { - "type": "string", - "description": "Username for a username/password pair." - }, - "password": { - "type": "string", - "description": "Password for a username/password pair." - } - }, - "type": "object", - "required": [ - "username", - "password" - ], - "description": "Username/password credential pair." - }, - "MediaGraphClearEndpoint": { - "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphClearEndpoint", - "allOf": [ - { - "$ref": "#/definitions/MediaGraphEndpoint" - } - ], - "properties": {}, - "type": "object", - "description": "An endpoint to connect to with no encryption in transit." - }, - "MediaGraphTlsEndpoint": { - "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphTlsEndpoint", - "allOf": [ - { - "$ref": "#/definitions/MediaGraphEndpoint" - } - ], - "properties": { - "trustedCertificates": { - "$ref": "#/definitions/MediaGraphCertificateSource", - "description": "What certificates should be trusted when authenticating a TLS connection. Null designates that Azure Media's source of trust should be used." - }, - "validationOptions": { - "$ref": "#/definitions/MediaGraphTlsValidationOptions", - "description": "Validation options to use when authenticating a TLS connection. By default, strict validation is used." - } - }, - "type": "object", - "description": "An endpoint which must be connected over TLS/SSL." - }, - "MediaGraphCertificateSource": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for certificate sources." - }, - "MediaGraphTlsValidationOptions": { - "properties": { - "ignoreHostname": { - "type": "boolean", - "description": "Ignore the host name (common name) during validation." - }, - "ignoreSignature": { - "type": "boolean", - "description": "Ignore the integrity of the certificate chain at the current time." - } - }, - "type": "object", - "required": [ - "ignoreHostname", - "ignoreSignature" - ], - "description": "Options for controlling the authentication of TLS endpoints." - }, - "MediaGraphPemCertificateList": { - "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphPemCertificateList", - "allOf": [ - { - "$ref": "#/definitions/MediaGraphCertificateSource" - } - ], - "properties": { - "certificates": { - "type": "array", - "items": { - "type": "string" - }, - "description": "PEM formatted public certificates, one per entry." - } - }, - "type": "object", - "required": [ - "certificates" - ], - "description": "A list of PEM formatted certificates." - }, - "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 details 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 by name": { - "$ref": "examples/media-graph-get-by-name.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" - } - }, - "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 with a clear RTSP Source": { - "$ref": "examples/media-graph-create-clear-source.json" - }, - "Create or update a Media Graph with an encrypted RTSP Source": { - "$ref": "examples/media-graph-create-encrypted-source.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": { - "$ref": "examples/media-graph-start.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": { - "$ref": "examples/media-graph-stop.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" - } - } - }, - "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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-clear-source.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-clear-source.json deleted file mode 100644 index ee95f1a0a46d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-clear-source.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2020-02-01-preview", - "parameters": { - "properties": { - "description": "updated description", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "rtspSource", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream1", - "credentials": { - "@odata.type": "#Microsoft.Media.MediaGraphUsernamePasswordCredentials", - "username": "exampleusername", - "password": "examplepassword" - } - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink", - "inputs": [ - "rtspSource" - ], - "assetName": "SampleAsset" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "SampleMediaGraph", - "properties": { - "description": "", - "state": "Stopped", - "created": "2019-09-01T00:00:00Z", - "lastModified": "2019-09-01T00:00:00Z", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "RTSPSource1", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream1" - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink1", - "inputs": [ - "RTSPSource1" - ], - "assetName": "SampleAsset1" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-encrypted-source.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-encrypted-source.json deleted file mode 100644 index 2db8f6d07a5f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-create-encrypted-source.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2020-02-01-preview", - "parameters": { - "properties": { - "description": "updated description", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "rtspSource", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphTlsEndpoint", - "url": "rtsps://contoso.com:443/stream1", - "credentials": { - "@odata.type": "#Microsoft.Media.MediaGraphUsernamePasswordCredentials", - "username": "exampleusername", - "password": "examplepassword" - }, - "trustedCertificates": { - "@odata.type": "#Microsoft.Media.MediaGraphPemCertificateList", - "certificates": [ - "-----BEGIN CERTIFICATE-----\nMIIDhTCCAm2gAwIBAgIUajvPKmoO+8qaO89/ZGATl7ZYnTswDQYJKoZIhvcNAQEL\nBQAwUTESMBAGA1UECgwJTWljcm9zb2Z0MRQwEgYDVQQLDAtBenVyZSBNZWRpYTEl\nMCMGA1UEAwwcKFVudHJ1c3RlZCkgVGVzdCBDZXJ0aWZpY2F0ZTAgFw0yMDAyMDYy\nMTI5MTlaGA8zMDE5MDYwOTIxMjkxOVowUTESMBAGA1UECgwJTWljcm9zb2Z0MRQw\nEgYDVQQLDAtBenVyZSBNZWRpYTElMCMGA1UEAwwcKFVudHJ1c3RlZCkgVGVzdCBD\nZXJ0aWZpY2F0ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK2lg5ff\n7xXPaBZXHl/zrTukdiBtu7BNIOchHba51eloruPRzpvQx7Pedk3CVTut7LYinijf\nuol0EwkQ2FLt2i2jOqiva9nXR95ujIZHcKsEeMC4RSNSP4++k6SpP8FgyYVdv5ru\nf8GC+HyYQ4j0TqpR/cJs53l/LGRSldaFZ6fcDde1jeyca4VivAbAH1/WDIOvmjzo\n9XIGxZ10VSS5l5+DIgdkJZ+mDMLJIuVZ0YVF16ZGEB3beq1trk5lItvmSjQLTllH\nqMFm9UGY8jKZSo/BY8ewHEtnGSAFQK0TVuRx1HhUWwu6C9jk+2zmRS2090BNpQWa\nJMKFJrSPzFDPRX8CAwEAAaNTMFEwHQYDVR0OBBYEFIumbhu0lYk0EFDThEg0yyIn\n/wZZMB8GA1UdIwQYMBaAFIumbhu0lYk0EFDThEg0yyIn/wZZMA8GA1UdEwEB/wQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBADUNw+/NGNVtigq9tMJKqlk39MTpDn1s\nZ1BVIAuAWSQjlevYZJeDIPUiWNWFhRe+xN7oOLnn2+NIXEKKeMSyuPoZYbN0mBkB\n99oS3XVipSANpmDvIepNdCrOnjfqDFIifRF1Dqjtb6i1hb6v/qYKVPLQvcrgGur7\nPKKkAu9p4YRZ3RBdwwaUuMgojrj/l6DGbeJY6IRVnVMY39rryMnZjA5xUlhCu55n\noB3t/jsJLwnQN+JbAjLAeuqgOWtgARsEFzvpt+VvDsaj0YLOJPhyJwTvHgaa/slB\nnECzd3TuyFKYeGssSni/QQ1e7yZcLapQqz66g5otdriw0IRdOfDxm5M=\n-----END CERTIFICATE-----" - ] - }, - "validationOptions": { - "ignoreHostname": true, - "ignoreSignature": false - } - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink", - "inputs": [ - "rtspSource" - ], - "assetName": "SampleAsset" - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "SampleMediaGraph", - "properties": { - "description": "", - "state": "Stopped", - "created": "2019-09-01T00:00:00Z", - "lastModified": "2019-09-01T00:00:00Z", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "RTSPSource1", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphTlsEndpoint", - "url": "rtsp://contoso.com:554/stream1", - "trustedCertificates": { - "@odata.type": "#Microsoft.Media.MediaGraphPemCertificateList", - "certificates": [ - "-----BEGIN CERTIFICATE-----\nMIIDhTCCAm2gAwIBAgIUajvPKmoO+8qaO89/ZGATl7ZYnTswDQYJKoZIhvcNAQEL\nBQAwUTESMBAGA1UECgwJTWljcm9zb2Z0MRQwEgYDVQQLDAtBenVyZSBNZWRpYTEl\nMCMGA1UEAwwcKFVudHJ1c3RlZCkgVGVzdCBDZXJ0aWZpY2F0ZTAgFw0yMDAyMDYy\nMTI5MTlaGA8zMDE5MDYwOTIxMjkxOVowUTESMBAGA1UECgwJTWljcm9zb2Z0MRQw\nEgYDVQQLDAtBenVyZSBNZWRpYTElMCMGA1UEAwwcKFVudHJ1c3RlZCkgVGVzdCBD\nZXJ0aWZpY2F0ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK2lg5ff\n7xXPaBZXHl/zrTukdiBtu7BNIOchHba51eloruPRzpvQx7Pedk3CVTut7LYinijf\nuol0EwkQ2FLt2i2jOqiva9nXR95ujIZHcKsEeMC4RSNSP4++k6SpP8FgyYVdv5ru\nf8GC+HyYQ4j0TqpR/cJs53l/LGRSldaFZ6fcDde1jeyca4VivAbAH1/WDIOvmjzo\n9XIGxZ10VSS5l5+DIgdkJZ+mDMLJIuVZ0YVF16ZGEB3beq1trk5lItvmSjQLTllH\nqMFm9UGY8jKZSo/BY8ewHEtnGSAFQK0TVuRx1HhUWwu6C9jk+2zmRS2090BNpQWa\nJMKFJrSPzFDPRX8CAwEAAaNTMFEwHQYDVR0OBBYEFIumbhu0lYk0EFDThEg0yyIn\n/wZZMB8GA1UdIwQYMBaAFIumbhu0lYk0EFDThEg0yyIn/wZZMA8GA1UdEwEB/wQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBADUNw+/NGNVtigq9tMJKqlk39MTpDn1s\nZ1BVIAuAWSQjlevYZJeDIPUiWNWFhRe+xN7oOLnn2+NIXEKKeMSyuPoZYbN0mBkB\n99oS3XVipSANpmDvIepNdCrOnjfqDFIifRF1Dqjtb6i1hb6v/qYKVPLQvcrgGur7\nPKKkAu9p4YRZ3RBdwwaUuMgojrj/l6DGbeJY6IRVnVMY39rryMnZjA5xUlhCu55n\noB3t/jsJLwnQN+JbAjLAeuqgOWtgARsEFzvpt+VvDsaj0YLOJPhyJwTvHgaa/slB\nnECzd3TuyFKYeGssSni/QQ1e7yZcLapQqz66g5otdriw0IRdOfDxm5M=\n-----END CERTIFICATE-----" - ] - }, - "validationOptions": { - "ignoreHostname": true, - "ignoreSignature": false - } - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink1", - "inputs": [ - "RTSPSource1" - ], - "assetName": "SampleAsset1" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-delete.json deleted file mode 100644 index 926237e1effa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2020-02-01-preview" - }, - "responses": { - "204": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-get-by-name.json deleted file mode 100644 index ac956524107f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-get-by-name.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph1", - "api-version": "2020-02-01-preview" - }, - "responses": { - "404": {}, - "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", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream1" - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink1", - "inputs": [ - "RTSPSource1" - ], - "assetName": "SampleAsset1" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-list-all.json deleted file mode 100644 index ac30752b4fd4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-list-all.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-02-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", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream0" - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink0", - "inputs": [ - "RTSPSource0" - ], - "assetName": "SampleAsset0" - } - ] - } - }, - { - "name": "SampleMediaGraph1", - "properties": { - "description": "", - "state": "Starting", - "created": "2019-09-01T00:00:00Z", - "lastModified": "2019-09-01T00:00:00Z", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "RTSPSource1", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream1" - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink1", - "inputs": [ - "RTSPSource1" - ], - "assetName": "SampleAsset1" - } - ] - } - }, - { - "name": "SampleMediaGraph2", - "properties": { - "description": "", - "state": "Running", - "created": "2019-09-01T00:00:00Z", - "lastModified": "2019-09-01T00:00:00Z", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "RTSPSource2", - "transport": "Http", - "endpoint": { - "@odata.type": "#Microsoft.Media.MediaGraphClearEndpoint", - "url": "rtsp://contoso.com:554/stream2" - } - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink2", - "inputs": [ - "RTSPSource2" - ], - "assetName": "SampleAsset2" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-start.json deleted file mode 100644 index 3c85327074f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2020-02-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-stop.json deleted file mode 100644 index 3c85327074f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/media-graph-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "api-version": "2020-02-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-result-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-result-get.json deleted file mode 100644 index 6cceda024e15..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-result-get.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "operationId": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", - "api-version": "2020-02-01-preview" - }, - "responses": { - "200": { - "body": {} - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-status-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-status-get.json deleted file mode 100644 index eecbc258949b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/preview/2020-02-01-preview/examples/operation-status-get.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", - "operationId": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", - "api-version": "2020-02-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", - "status": "Succeeded" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json deleted file mode 100644 index 08dbdd4508df..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCheckNameAvailability.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "api-version": "2015-10-01", - "parameters": { - "name": "contosomedia", - "type": "mediaservices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCreate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCreate.json deleted file mode 100644 index 0831e46e7254..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceCreate.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01", - "parameters": { - "location": "West US", - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "location": "West US", - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceDelete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceDelete.json deleted file mode 100644 index 696949aa4ed5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceDelete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceGet.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceGet.json deleted file mode 100644 index e20b0079f804..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceGet.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01" - }, - "responses": { - "200": { - "body": { - "name": "contosmedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia", - "type": "Microsoft.Media/mediaservices", - "tags": {}, - "location": "East US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://contosmedia.restv2.eastus.media.azure.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json deleted file mode 100644 index e63b42baf399..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListByResourceGroup.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "api-version": "2015-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosmedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia", - "type": "Microsoft.Media/mediaservices", - "tags": {}, - "location": "East US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://contosmedia.restv2.eastus.media.azure.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - }, - { - "name": "contosmedia2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/contosoresources/providers/Microsoft.Media/mediaservices/contosmedia2", - "type": "Microsoft.Media/mediaservices", - "tags": {}, - "location": "West US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://contosmedia2.restv2.westus.media.azure.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/microsoft.storage/storageAccounts/contosostore2", - "isPrimary": true - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListKeys.json deleted file mode 100644 index 9952ebf32be2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceListKeys.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01" - }, - "responses": { - "200": { - "body": { - "primaryAuthEndpoint": "https://wamsprodglobal001acs.accesscontrol.windows.net/", - "secondaryAuthEndpoint": "https://wamsprodglobal002acs.accesscontrol.windows.net/", - "primaryKey": "", - "secondaryKey": "", - "scope": "urn:windowsazuremediaservices" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceRegenerateKey.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceRegenerateKey.json deleted file mode 100644 index 2101656df90b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceRegenerateKey.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01", - "parameters": { - "keyType": "Primary" - } - }, - "responses": { - "200": { - "body": { - "key": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json deleted file mode 100644 index 7888f9c85b92..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceSyncStorageKeys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01", - "parameters": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceUpdate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceUpdate.json deleted file mode 100644 index e09a1ff1182d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/MediaServiceUpdate.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "mediaServiceName": "contosmedia", - "api-version": "2015-10-01", - "parameters": { - "location": "West US", - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "location": "West US", - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosostore", - "isPrimary": true - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/OperationsList.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/OperationsList.json deleted file mode 100644 index 37c0d04d1ba1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/examples/OperationsList.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2015-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "read" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "write" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "delete" - } - }, - { - "name": "Microsoft.Media/mediaservices/regenerateKey/action", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "regenerateKey" - } - }, - { - "name": "Microsoft.Media/mediaservices/listKeys/action", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "listKeys" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft.Media", - "resource": "MediaService", - "operation": "syncStorageKeys" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/media.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/media.json deleted file mode 100644 index c067803e10d5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2015-10-01/media.json +++ /dev/null @@ -1,962 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "MediaServicesManagementClient", - "description": "Media Services resource management APIs.", - "version": "2015-10-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "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": { - "/providers/Microsoft.Media/operations": { - "get": { - "operationId": "Operations_List", - "description": "Lists all of the available Media Services REST API operations.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "OperationsList": { - "$ref": "./examples/OperationsList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success. Returns a list of operations.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/CheckNameAvailability": { - "post": { - "operationId": "MediaService_CheckNameAvailability", - "description": "Checks whether the Media Service resource name is available. The name must be globally unique.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceCheckNameAvailability": { - "$ref": "./examples/MediaServiceCheckNameAvailability.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "parameters", - "description": "Properties needed to check the availability of a name.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - } - } - ], - "responses": { - "200": { - "description": "Success. Returns details about whether a Media Service resource name is available.", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityOutput" - }, - "examples": { - "application/json": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "Already in use by another Media Service instance. Please try again with a name that is not likely to be in use." - } - } - }, - "default": { - "description": "CheckNameAvailability of a Media Service failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "operationId": "MediaService_ListByResourceGroup", - "description": "Lists all of the Media Services in a resource group.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceListByResourceGroup": { - "$ref": "./examples/MediaServiceListByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - } - ], - "responses": { - "200": { - "description": "Success. Returns a list of all of the Media Services accounts in a resource group.", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - }, - "examples": { - "application/json": { - "value": [ - { - "name": "contosomedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", - "type": "Microsoft.Media/mediaservices", - "location": "West US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - } - ] - } - } - ] - } - } - }, - "default": { - "description": "List Media Services failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}": { - "get": { - "operationId": "MediaService_Get", - "description": "Gets a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceGet": { - "$ref": "./examples/MediaServiceGet.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - } - ], - "responses": { - "200": { - "description": "Success. Returns the details of the Media Services account.", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "examples": { - "application/json": { - "name": "contosomedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", - "type": "Microsoft.Media/mediaservices", - "location": "West US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - } - ] - } - } - } - }, - "default": { - "description": "Get Media Services failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - }, - "put": { - "operationId": "MediaService_Create", - "description": "Creates a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceCreate": { - "$ref": "./examples/MediaServiceCreate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - }, - { - "name": "parameters", - "description": "Media Service properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - } - } - ], - "responses": { - "201": { - "description": "Success. Returns the new Media Services account.", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "examples": { - "application/json": { - "name": "contosomedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", - "type": "Microsoft.Media/mediaservices", - "location": "West US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - } - ] - } - } - } - }, - "default": { - "description": "Create Media Services failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - }, - "delete": { - "operationId": "MediaService_Delete", - "description": "Deletes a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceDelete": { - "$ref": "./examples/MediaServiceDelete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - } - ], - "responses": { - "200": { - "description": "Success. The Media Services account was deleted." - }, - "204": { - "description": "No Content. The account name does not exist." - }, - "default": { - "description": "Delete Media Services failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - }, - "patch": { - "operationId": "MediaService_Update", - "description": "Updates a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceUpdate": { - "$ref": "./examples/MediaServiceUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - }, - { - "name": "parameters", - "description": "Media Service properties needed for update.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - } - } - ], - "responses": { - "200": { - "description": "Success. The Media Services account was updated.", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "examples": { - "application/json": { - "name": "contosomedia", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia", - "type": "Microsoft.Media/mediaservices", - "location": "West US", - "properties": { - "apiEndpoints": [ - { - "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion": "2" - } - ], - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - } - ] - } - } - } - }, - "default": { - "description": "Update Media Services failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/regenerateKey": { - "post": { - "operationId": "MediaService_RegenerateKey", - "description": "Regenerates a primary or secondary key for a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceRegenerateKey": { - "$ref": "./examples/MediaServiceRegenerateKey.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - }, - { - "name": "parameters", - "description": "Properties needed to regenerate the Media Service key.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RegenerateKeyInput" - } - } - ], - "responses": { - "200": { - "description": "Success. The Media Services key specified in the input was regenerated.", - "schema": { - "$ref": "#/definitions/RegenerateKeyOutput" - }, - "examples": { - "application/json": { - "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" - } - } - }, - "default": { - "description": "Regenerate Media Service key failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/listKeys": { - "post": { - "operationId": "MediaService_ListKeys", - "description": "Lists the keys for a Media Service.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceListKeys": { - "$ref": "./examples/MediaServiceListKeys.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - } - ], - "responses": { - "200": { - "description": "Success. The keys for the Media Services account were listed.", - "schema": { - "$ref": "#/definitions/ServiceKeys" - }, - "examples": { - "application/json": { - "primaryAuthEndpoint": "https://wamsprodglobal001acs.accesscontrol.windows.net/", - "secondaryAuthEndpoint": "https://wamsprodglobal002acs.accesscontrol.windows.net/", - "primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", - "secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", - "scope": "urn:windowsazuremediaservices" - } - } - }, - "default": { - "description": "List Media Service keys failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/syncStorageKeys": { - "post": { - "operationId": "MediaService_SyncStorageKeys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "externalDocs": { - "url": "https://aka.ms/media-manage" - }, - "x-ms-examples": { - "MediaServiceSyncStorageKeys": { - "$ref": "./examples/MediaServiceSyncStorageKeys.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/mediaResourceNameParameter" - }, - { - "name": "parameters", - "description": "Properties needed to synchronize the keys for a storage account to the Media Service.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - } - } - ], - "responses": { - "200": { - "description": "Success. The keys for the storage account were synchronized." - }, - "default": { - "description": "Synch Media Service storage keys failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - } - } - } - }, - "definitions": { - "ApiEndpoint": { - "description": "The properties for a Media Services REST API endpoint.", - "example": { - "endpoint": "https://wamsbayclus001rest-hs.cloudapp.net/api/", - "majorVersion": "2" - }, - "properties": { - "endpoint": { - "description": "The Media Services REST endpoint.", - "type": "string" - }, - "majorVersion": { - "description": "The version of Media Services REST API.", - "type": "string" - } - } - }, - "ApiError": { - "description": "The error returned from a failed Media Services REST API call.", - "example": { - "error": { - "code": "BadRequest", - "message": "Name availability check is not supported for type Microsoft.Media/mediaservices." - } - }, - "properties": { - "code": { - "description": "Error code.", - "type": "string" - }, - "message": { - "description": "Error message.", - "type": "string" - } - } - }, - "CheckNameAvailabilityInput": { - "description": "The request body for CheckNameAvailability API.", - "example": { - "name": "contosomedia", - "type": "mediaservices" - }, - "required": [ - "name", - "type" - ], - "properties": { - "name": { - "description": "The name of the resource. A name must be globally unique.", - "type": "string", - "pattern": "^[a-z0-9]{3,24}$", - "minLength": 3, - "maxLength": 24 - }, - "type": { - "description": "The type of the resource - mediaservices.", - "$ref": "#/definitions/ResourceType" - } - } - }, - "ResourceType": { - "description": "Type of MediaService resource.", - "enum": [ - "mediaservices" - ], - "type": "string", - "x-ms-enum": { - "name": "ResourceType", - "modelAsString": false - } - }, - "CheckNameAvailabilityOutput": { - "description": "The response body for CheckNameAvailability API.", - "properties": { - "nameAvailable": { - "description": "Specifies if the name is available.", - "type": "boolean" - }, - "reason": { - "description": "Specifies the reason if the name is not available.", - "type": "string", - "enum": [ - "None", - "Invalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "EntityNameUnavailabilityReason", - "modelAsString": false - } - }, - "message": { - "description": "Specifies the detailed reason if the name is not available.", - "type": "string" - } - } - }, - "MediaService": { - "description": "The properties of a Media Service resource.", - "example": { - "location": "West US", - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - } - ] - } - }, - "properties": { - "properties": { - "description": "The additional properties of a Media Service resource.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/MediaServiceProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ] - }, - "MediaServiceCollection": { - "description": "The collection of Media Service resources.", - "properties": { - "value": { - "description": "The collection of Media Service resources.", - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - } - } - } - }, - "MediaServiceProperties": { - "description": "The additional properties of a Media Service resource.", - "properties": { - "apiEndpoints": { - "description": "Read-only property that lists the Media Services REST API endpoints for this resource. If supplied on a PUT or PATCH, the value will be ignored.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ApiEndpoint" - } - }, - "storageAccounts": { - "description": "The storage accounts for this resource.", - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - } - } - } - }, - "RegenerateKeyInput": { - "description": "The request body for a RegenerateKey API.", - "example": { - "keyType": "Primary" - }, - "properties": { - "keyType": { - "description": "The keyType indicating which key you want to regenerate, Primary or Secondary.", - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "KeyType", - "modelAsString": false - } - } - }, - "required": [ - "keyType" - ] - }, - "RegenerateKeyOutput": { - "description": "The response body for a RegenerateKey API.", - "example": { - "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" - }, - "properties": { - "key": { - "description": "The new value of either the primary or secondary key.", - "type": "string" - } - } - }, - "Resource": { - "description": "The Azure Resource Manager resource.", - "properties": { - "id": { - "description": "The id of the resource.", - "readOnly": true, - "type": "string" - }, - "name": { - "description": "The name of the resource.", - "readOnly": true, - "type": "string" - }, - "type": { - "description": "The type of the resource", - "readOnly": true, - "type": "string" - }, - "location": { - "type": "string", - "description": "The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth)." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Tags to help categorize the resource in the Azure portal." - } - }, - "x-ms-azure-resource": true - }, - "ServiceKeys": { - "description": "The response body for a ListKeys API.", - "example": { - "primaryAuthEndpoint": "https://wamsprodglobal001acs.accesscontrol.windows.net/", - "secondaryAuthEndpoint": "https://wamsprodglobal002acs.accesscontrol.windows.net/", - "primaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", - "secondaryKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=", - "scope": "urn:windowsazuremediaservices" - }, - "properties": { - "primaryAuthEndpoint": { - "description": "The primary authorization endpoint.", - "type": "string" - }, - "secondaryAuthEndpoint": { - "description": "The secondary authorization endpoint.", - "type": "string" - }, - "primaryKey": { - "description": "The primary key for the Media Service resource.", - "type": "string" - }, - "secondaryKey": { - "description": "The secondary key for the Media Service resource.", - "type": "string" - }, - "scope": { - "description": "The authorization scope.", - "type": "string" - } - } - }, - "StorageAccount": { - "description": "The properties of a storage account associated with this resource.", - "example": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia", - "isPrimary": true - }, - "required": [ - "id", - "isPrimary" - ], - "properties": { - "id": { - "description": "The id of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false).", - "type": "string" - }, - "isPrimary": { - "description": "Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false.", - "type": "boolean" - } - } - }, - "SyncStorageKeysInput": { - "description": "The request body for a SyncStorageKeys API.", - "example": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Storage/storageAccounts/contosomedia" - }, - "required": [ - "id" - ], - "properties": { - "id": { - "description": "The id of the storage account resource.", - "type": "string" - } - } - }, - "OperationListResult": { - "description": "Result of the request to list Media Services operations.", - "properties": { - "value": { - "description": "List of Media Services operations supported by the Microsoft.Media resource provider.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true - } - } - }, - "Operation": { - "description": "A Media Services REST API operation", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string", - "readOnly": true - }, - "display": { - "description": "The object that represents the operation.", - "properties": { - "provider": { - "description": "Service provider: Microsoft.Media", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "Resource on which the operation is performed: Invoice, etc.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string", - "readOnly": true - } - } - } - } - } - }, - "parameters": { - "subscriptionIdParameter": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "resourceGroupNameParameter": { - "name": "resourceGroupName", - "description": "Name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "mediaResourceNameParameter": { - "name": "mediaServiceName", - "description": "Name of the Media Service.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z0-9]{3,24}$", - "minLength": 3, - "maxLength": 24, - "x-ms-parameter-location": "method" - }, - "apiVersionParameter": { - "name": "api-version", - "description": "Version of the API to be used with the client request. The current version is 2015-10-01.", - "in": "query", - "required": true, - "type": "string" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json deleted file mode 100644 index e1fb06af19a1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json +++ /dev/null @@ -1,1031 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "Metric": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "description": "The metric dimensions.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "ServiceSpecification": { - "properties": { - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/Metric" - }, - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "MetricProperties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "Metric properties." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/MetricProperties", - "description": "Operation properties format." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "SubscriptionMediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "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." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - }, - "SubscriptionMediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SubscriptionMediaService" - }, - "description": "A collection of SubscriptionMediaService 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 SubscriptionMediaService items." - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SubscriptionMediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The Version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Common.json deleted file mode 100644 index 8ffd3bd1f71a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/Common.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "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" - } - ] - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-check-name-availability.json deleted file mode 100644 index 4ef7fa721199..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-create.json deleted file mode 100644 index 3451dc6b0572..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-delete.json deleted file mode 100644 index c881a84854c0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-delete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-get-by-name.json deleted file mode 100644 index 4ae9745f6b2a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index 2f59e9cae5ef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index f4635b5811db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index 665c0edcd6bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 07e64ecaadba..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index ea9b54b7ffd8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-update.json deleted file mode 100644 index 0d4396b72abe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/accounts-update.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2018-07-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/operations-list-all.json deleted file mode 100644 index 7426d00e6230..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2018-07-01/examples/operations-list-all.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Count", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Accounts.json deleted file mode 100644 index 55b2e3fea338..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Accounts.json +++ /dev/null @@ -1,1444 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "MetricSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "lockAggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric lock aggregation type", - "readOnly": true, - "x-nullable": true - }, - "supportedAggregationTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported aggregation types." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "description": "The metric dimensions.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "Properties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service specification property." - }, - "ServiceSpecification": { - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "LogSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The diagnostic log category name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The diagnostic log category display name.", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "description": "The time range for requests in each blob.", - "readOnly": true - } - }, - "type": "object", - "description": "A diagnostic log emitted by service." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/Properties", - "description": "Operation properties format." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - }, - "storageAuthentication": { - "type": "string", - "enum": [ - "System", - "ManagedIdentity" - ], - "x-ms-enum": { - "name": "StorageAuthentication", - "values": [ - { - "value": "System", - "description": "System authentication." - }, - { - "value": "ManagedIdentity", - "description": "Managed Identity authentication." - } - ], - "modelAsString": true - }, - "x-nullable": true - }, - "encryption": { - "$ref": "#/definitions/AccountEncryption", - "description": "The account encryption properties." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "MediaServiceIdentity": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemAssigned", - "None" - ], - "x-ms-enum": { - "name": "ManagedIdentityType", - "values": [ - { - "value": "SystemAssigned", - "description": "A system-assigned managed identity." - }, - { - "value": "None", - "description": "No managed identity." - } - ], - "modelAsString": true - }, - "description": "The identity type." - }, - "principalId": { - "type": "string", - "description": "The Principal ID of the identity.", - "readOnly": true - }, - "tenantId": { - "type": "string", - "description": "The Tenant ID of the identity.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "KeyVaultProperties": { - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." - }, - "currentKeyIdentifier": { - "type": "string", - "description": "The current key used to encrypt the Media Services account, including the key version.", - "readOnly": true - } - }, - "type": "object" - }, - "AccountEncryption": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemKey", - "CustomerKey" - ], - "x-ms-enum": { - "name": "AccountEncryptionKeyType", - "values": [ - { - "value": "SystemKey", - "description": "The Account Key is encrypted with a System Key." - }, - { - "value": "CustomerKey", - "description": "The Account Key is encrypted with a Customer Key." - } - ], - "modelAsString": true - }, - "description": "The type of key used to encrypt the Account Key." - }, - "keyVaultProperties": { - "$ref": "#/definitions/KeyVaultProperties", - "description": "The properties of the key used to encrypt the account." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { - "get": { - "summary": "Get list of group IDs.", - "description": "Get list of group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get list of all group IDs.": { - "$ref": "examples/private-link-resources-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { - "get": { - "summary": "Get group ID.", - "description": "Get group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get details of a group ID.": { - "$ref": "examples/private-link-resources-get-by-name.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { - "get": { - "summary": "Get all private endpoint connections.", - "description": "Get all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get all private endpoint connections.": { - "$ref": "examples/private-endpoint-connection-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { - "get": { - "summary": "Get private endpoint connection.", - "description": "Get private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-get-by-name.json" - } - } - }, - "put": { - "summary": "Update private endpoint connection.", - "description": "Update private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-put.json" - } - } - }, - "delete": { - "summary": "Delete private endpoint connection.", - "description": "Delete private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_GetBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "description": "The Media Services account name.", - "name": "accountName", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-subscription-get-by-name.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Common.json deleted file mode 100644 index 47062ce01dfd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/Common.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "version": "2020-05-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": { - "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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-check-name-availability.json deleted file mode 100644 index d706c1e825ec..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-create.json deleted file mode 100644 index 8f761a357b83..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-delete.json deleted file mode 100644 index 70012feb623d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-get-by-name.json deleted file mode 100644 index 7512c2a08c66..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index 04ff56babaec..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index dff0e11b78cb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-get-by-name.json deleted file mode 100644 index c40be298ae98..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index ca18508aa67e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 453aaa7a88e8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-update.json deleted file mode 100644 index d1d67e1cc9bb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/accounts-update.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/operations-list-all.json deleted file mode 100644 index 530eeb904efb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/operations-list-all.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Count", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index ddc3608e5cab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 859c2857b95a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 785b32db5fb0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 03ee510a3286..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index 7ef5ee153fcd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-list.json deleted file mode 100644 index 5aa331ad27fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2020-05-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/Accounts.json deleted file mode 100644 index 73d9e5c9bda1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/Accounts.json +++ /dev/null @@ -1,1524 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-05-01" - }, - "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": { - "Provider": { - "description": "A resource provider.", - "properties": { - "providerName": { - "description": "The provider name.", - "type": "string" - } - }, - "type": "object", - "required": [ - "providerName" - ] - }, - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "MetricSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "lockAggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric lock aggregation type", - "readOnly": true, - "x-nullable": true - }, - "supportedAggregationTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported aggregation types." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "description": "The metric dimensions.", - "readOnly": true - }, - "enableRegionalMdmAccount": { - "type": "boolean", - "description": "Indicates whether regional MDM account is enabled.", - "readOnly": true, - "x-nullable": false - }, - "sourceMdmAccount": { - "type": "string", - "description": "The source MDM account.", - "readOnly": true - }, - "sourceMdmNamespace": { - "type": "string", - "description": "The source MDM namespace.", - "readOnly": true - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The supported time grain types.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "Properties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service specification property." - }, - "ServiceSpecification": { - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "LogSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The diagnostic log category name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The diagnostic log category display name.", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "description": "The time range for requests in each blob.", - "readOnly": true - } - }, - "type": "object", - "description": "A diagnostic log emitted by service." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/Properties", - "description": "Operation properties format." - }, - "isDataAction": { - "type": "boolean", - "description": "Whether the operation applies to data-plane.", - "x-nullable": true - }, - "actionType": { - "type": "string", - "enum": [ - "Internal" - ], - "x-ms-enum": { - "name": "ActionType", - "values": [ - { - "value": "Internal", - "description": "An internal action." - } - ], - "modelAsString": true - }, - "description": "Indicates the action type.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "Location": { - "properties": { - "name": { - "type": "string" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - }, - "storageAuthentication": { - "type": "string", - "enum": [ - "System", - "ManagedIdentity" - ], - "x-ms-enum": { - "name": "StorageAuthentication", - "values": [ - { - "value": "System", - "description": "System authentication." - }, - { - "value": "ManagedIdentity", - "description": "Managed Identity authentication." - } - ], - "modelAsString": true - }, - "x-nullable": true - }, - "encryption": { - "$ref": "#/definitions/AccountEncryption", - "description": "The account encryption properties." - }, - "keyDelivery": { - "$ref": "#/definitions/KeyDelivery", - "description": "The Key Delivery properties for Media Services account." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object" - }, - "MediaServiceUpdate": { - "description": "A Media Services account update.", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "MediaServiceIdentity": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemAssigned", - "None" - ], - "x-ms-enum": { - "name": "ManagedIdentityType", - "values": [ - { - "value": "SystemAssigned", - "description": "A system-assigned managed identity." - }, - { - "value": "None", - "description": "No managed identity." - } - ], - "modelAsString": true - }, - "description": "The identity type." - }, - "principalId": { - "type": "string", - "description": "The Principal ID of the identity.", - "readOnly": true - }, - "tenantId": { - "type": "string", - "description": "The Tenant ID of the identity.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "KeyVaultProperties": { - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." - }, - "currentKeyIdentifier": { - "type": "string", - "description": "The current key used to encrypt the Media Services account, including the key version.", - "readOnly": true - } - }, - "type": "object" - }, - "AccountEncryption": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemKey", - "CustomerKey" - ], - "x-ms-enum": { - "name": "AccountEncryptionKeyType", - "values": [ - { - "value": "SystemKey", - "description": "The Account Key is encrypted with a System Key." - }, - { - "value": "CustomerKey", - "description": "The Account Key is encrypted with a Customer Key." - } - ], - "modelAsString": true - }, - "description": "The type of key used to encrypt the Account Key." - }, - "keyVaultProperties": { - "$ref": "#/definitions/KeyVaultProperties", - "description": "The properties of the key used to encrypt the account." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "AccessControl": { - "properties": { - "defaultAction": { - "type": "string", - "enum": [ - "Allow", - "Deny" - ], - "x-ms-enum": { - "name": "DefaultAction", - "values": [ - { - "value": "Allow", - "description": "All public IP addresses are allowed." - }, - { - "value": "Deny", - "description": "Public IP addresses are blocked." - } - ], - "modelAsString": true - }, - "description": "The behavior for IP access control in Key Delivery." - }, - "ipAllowList": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty." - } - }, - "type": "object" - }, - "KeyDelivery": { - "properties": { - "accessControl": { - "$ref": "#/definitions/AccessControl", - "description": "The access control properties for Key Delivery." - } - }, - "type": "object" - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "A collection of Operation 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 Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaServiceUpdate" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { - "get": { - "summary": "Get list of group IDs.", - "description": "Get list of group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get list of all group IDs.": { - "$ref": "examples/private-link-resources-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { - "get": { - "summary": "Get group ID.", - "description": "Get group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get details of a group ID.": { - "$ref": "examples/private-link-resources-get-by-name.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { - "get": { - "summary": "Get all private endpoint connections.", - "description": "Get all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get all private endpoint connections.": { - "$ref": "examples/private-endpoint-connection-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { - "get": { - "summary": "Get private endpoint connection.", - "description": "Get private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-get-by-name.json" - } - } - }, - "put": { - "summary": "Update private endpoint connection.", - "description": "Update private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../../common-types/resource-management/v1/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-put.json" - } - } - }, - "delete": { - "summary": "Delete private endpoint connection.", - "description": "Delete private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-check-name-availability.json deleted file mode 100644 index ec514e8f8fbf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "locationName": "japaneast", - "parameters": { - "name": "contosonew", - "type": "Microsoft.Media/MediaService" - }, - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-create.json deleted file mode 100644 index 9507e022ec83..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-create.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-delete.json deleted file mode 100644 index 44b8c322d53d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-get-by-name.json deleted file mode 100644 index a26fd73bfaac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index fbfc39a490ac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index 7c46dbacc38d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 591f78f6f6f8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 07f8108f5788..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-update.json deleted file mode 100644 index 6fe37b02c675..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/accounts-update.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-05-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "properties": { - "mediaServiceId": "42bea25f-1aa9-4f7a-82af-5a417592f22d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/operations-list-all.json deleted file mode 100644 index 530eeb904efb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/operations-list-all.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Count", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index ddc3608e5cab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 859c2857b95a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 785b32db5fb0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 03ee510a3286..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index 7ef5ee153fcd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-list.json deleted file mode 100644 index 5aa331ad27fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-05-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/Accounts.json deleted file mode 100644 index 1c30c9895836..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/Accounts.json +++ /dev/null @@ -1,1581 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "MetricSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "lockAggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric lock aggregation type", - "readOnly": true, - "x-nullable": true - }, - "supportedAggregationTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported aggregation types." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The metric dimensions.", - "readOnly": true - }, - "enableRegionalMdmAccount": { - "type": "boolean", - "description": "Indicates whether regional MDM account is enabled.", - "readOnly": true, - "x-nullable": false - }, - "sourceMdmAccount": { - "type": "string", - "description": "The source MDM account.", - "readOnly": true - }, - "sourceMdmNamespace": { - "type": "string", - "description": "The source MDM namespace.", - "readOnly": true - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The supported time grain types.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "Properties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service specification property." - }, - "ServiceSpecification": { - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "LogSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The diagnostic log category name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The diagnostic log category display name.", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "description": "The time range for requests in each blob.", - "readOnly": true - } - }, - "type": "object", - "description": "A diagnostic log emitted by service." - }, - "Operation": { - "description": "An operation.", - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/Properties", - "description": "Operation properties format." - }, - "isDataAction": { - "type": "boolean", - "description": "Whether the operation applies to data-plane.", - "x-nullable": true - }, - "actionType": { - "type": "string", - "enum": [ - "Internal" - ], - "x-ms-enum": { - "name": "ActionType", - "values": [ - { - "value": "Internal", - "description": "An internal action." - } - ], - "modelAsString": true - }, - "description": "Indicates the action type.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The storage account identity." - }, - "status": { - "type": "string", - "description": "The current status of the storage account mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - }, - "storageAuthentication": { - "type": "string", - "enum": [ - "System", - "ManagedIdentity" - ], - "x-ms-enum": { - "name": "StorageAuthentication", - "values": [ - { - "value": "System", - "description": "System authentication." - }, - { - "value": "ManagedIdentity", - "description": "Managed Identity authentication." - } - ], - "modelAsString": true - }, - "x-nullable": true - }, - "encryption": { - "$ref": "#/definitions/AccountEncryption", - "description": "The account encryption properties." - }, - "keyDelivery": { - "$ref": "#/definitions/KeyDelivery", - "description": "The Key Delivery properties for Media Services account." - }, - "publicNetworkAccess": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "values": [ - { - "value": "Enabled", - "description": "Public network access is enabled." - }, - { - "value": "Disabled", - "description": "Public network access is disabled." - } - ], - "modelAsString": true - }, - "description": "Whether or not public network access is allowed for resources under the Media Services account.", - "x-nullable": true - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object" - }, - "MediaServiceUpdate": { - "description": "A Media Services account update.", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "MediaServiceIdentity": { - "properties": { - "type": { - "type": "string", - "description": "The identity type." - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The Principal ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The Tenant ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "userAssignedIdentities": { - "$ref": "#/definitions/UserAssignedManagedIdentities", - "description": "The user assigned managed identities." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "UserAssignedManagedIdentity": { - "properties": { - "clientId": { - "type": "string", - "format": "uuid", - "description": "The client ID.", - "readOnly": true, - "x-nullable": true - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The principal ID.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object" - }, - "UserAssignedManagedIdentities": { - "type": "object", - "description": "The User Assigned Managed Identities.", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedManagedIdentity" - } - }, - "KeyVaultProperties": { - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." - }, - "currentKeyIdentifier": { - "type": "string", - "description": "The current key used to encrypt the Media Services account, including the key version.", - "readOnly": true - } - }, - "type": "object" - }, - "ResourceIdentity": { - "properties": { - "userAssignedIdentity": { - "type": "string", - "description": "The user assigned managed identity's ARM ID to use when accessing a resource." - }, - "useSystemAssignedIdentity": { - "type": "boolean", - "description": "Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity." - } - }, - "type": "object", - "required": [ - "useSystemAssignedIdentity" - ] - }, - "AccountEncryption": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemKey", - "CustomerKey" - ], - "x-ms-enum": { - "name": "AccountEncryptionKeyType", - "values": [ - { - "value": "SystemKey", - "description": "The Account Key is encrypted with a System Key." - }, - { - "value": "CustomerKey", - "description": "The Account Key is encrypted with a Customer Key." - } - ], - "modelAsString": true - }, - "description": "The type of key used to encrypt the Account Key." - }, - "keyVaultProperties": { - "$ref": "#/definitions/KeyVaultProperties", - "description": "The properties of the key used to encrypt the account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The Key Vault identity." - }, - "status": { - "type": "string", - "description": "The current status of the Key Vault mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "AccessControl": { - "properties": { - "defaultAction": { - "type": "string", - "enum": [ - "Allow", - "Deny" - ], - "x-ms-enum": { - "name": "DefaultAction", - "values": [ - { - "value": "Allow", - "description": "All public IP addresses are allowed." - }, - { - "value": "Deny", - "description": "Public IP addresses are blocked." - } - ], - "modelAsString": true - }, - "description": "The behavior for IP access control in Key Delivery." - }, - "ipAllowList": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty." - } - }, - "type": "object" - }, - "KeyDelivery": { - "properties": { - "accessControl": { - "$ref": "#/definitions/AccessControl", - "description": "The access control properties for Key Delivery." - } - }, - "type": "object" - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "A collection of Operation items." - } - }, - "type": "object", - "description": "A collection of Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/accounts-create.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaServiceUpdate" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { - "get": { - "summary": "Get list of group IDs.", - "description": "Get list of group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get list of all group IDs.": { - "$ref": "examples/private-link-resources-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { - "get": { - "summary": "Get group ID.", - "description": "Get group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get details of a group ID.": { - "$ref": "examples/private-link-resources-get-by-name.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { - "get": { - "summary": "Get all private endpoint connections.", - "description": "Get all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get all private endpoint connections.": { - "$ref": "examples/private-endpoint-connection-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { - "get": { - "summary": "Get private endpoint connection.", - "description": "Get private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-get-by-name.json" - } - } - }, - "put": { - "summary": "Update private endpoint connection.", - "description": "Update private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-put.json" - } - } - }, - "delete": { - "summary": "Delete private endpoint connection.", - "description": "Delete private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the location" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-check-name-availability.json deleted file mode 100644 index 55d75347517e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "locationName": "japanwest", - "api-version": "2021-06-01", - "parameters": { - "name": "contosotv", - "type": "videoAnalyzers" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-create.json deleted file mode 100644 index 1f4a2e1bdd15..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-create.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity" - } - } - }, - "responses": { - "200": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity" - } - } - }, - "201": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-delete.json deleted file mode 100644 index eb2c1a559aa6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-get-by-name.json deleted file mode 100644 index 8d00fd023c5f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosotv", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index 7bc12403e23c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index fbf5f7de8f65..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index c57a2c7dd96b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index bcbcf319a67d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-update.json deleted file mode 100644 index f996b5a181b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/accounts-update.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "200": { - "body": { - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/operations-list-all.json deleted file mode 100644 index b1cfcc14636c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/operations-list-all.json +++ /dev/null @@ -1,1395 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/regenerateKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Regenerate Key", - "description": "Regenerate a Media Services ACS key" - } - }, - { - "name": "Microsoft.Media/mediaservices/listKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List Keys", - "description": "List the ACS keys for the Media Services account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/listEdgePolicies/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List policies for an edge device.", - "description": "List policies for an edge device." - } - }, - { - "name": "Microsoft.Media/mediaservices/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Read Account Filter", - "description": "Read any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Create or Update Account Filter", - "description": "Create or Update any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Delete Account Filter", - "description": "Delete any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listStreamingLocators/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Streaming Locators for Asset", - "description": "List Streaming Locators for Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Read Asset Filter", - "description": "Read any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Create or Update Asset Filter", - "description": "Create or Update any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Delete Asset Filter", - "description": "Delete any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "EgressBandwidth", - "displayName": "Egress bandwidth", - "displayDescription": "Egress bandwidth in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "CPU", - "displayName": "CPU usage", - "displayDescription": "CPU usage for premium streaming endpoints. This data is not available for standard streaming endpoints.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Get a list of Media Services Live Event Metrics definitions.", - "description": "Get a list of Media Services Live Event Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "IngestBitrate", - "displayName": "Live Event ingest bitrate", - "displayDescription": "The incoming bitrate ingested for a live event, in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "IngestLastTimestamp", - "displayName": "Live Event ingest last timestamp", - "displayDescription": "Last timestamp ingested for a live event.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "IngestDriftValue", - "displayName": "Live Event ingest drift value", - "displayDescription": "Drift between the timestamp of the ingested content and the system clock, measured in seconds per minute. A non zero value indicates that the ingested content is arriving slower than system clock time.", - "unit": "Seconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "LiveOutputLastTimestamp", - "displayName": "Last output timestamp", - "displayDescription": "Timestamp of the last fragment uploaded to storage for a live event output.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "The log definition of mediaservices", - "operation": "Read mediaservices log definitions", - "description": "Gets the available logs for a Media Services Account" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "KeyDeliveryRequests", - "displayName": "Key Delivery Requests", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Service", - "operation": "Get list of Media Services Metric definitions.", - "description": "Get list of Media Services Metric definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "AssetQuota", - "displayName": "Asset quota", - "displayDescription": "How many assets are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetCount", - "displayName": "Asset count", - "displayDescription": "How many assets are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetQuotaUsedPercentage", - "displayName": "Asset quota used percentage", - "displayDescription": "Asset used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuota", - "displayName": "Content Key Policy quota", - "displayDescription": "How many content key polices are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyCount", - "displayName": "Content Key Policy count", - "displayDescription": "How many content key policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuotaUsedPercentage", - "displayName": "Content Key Policy quota used percentage", - "displayDescription": "Content Key Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuota", - "displayName": "Streaming Policy quota", - "displayDescription": "How many streaming policies are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyCount", - "displayName": "Streaming Policy count", - "displayDescription": "How many streaming policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuotaUsedPercentage", - "displayName": "Streaming Policy quota used percentage", - "displayDescription": "Streaming Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ChannelsAndLiveEventsCount", - "displayName": "Live event count", - "displayDescription": "The total number of live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "RunningChannelsAndLiveEventsCount", - "displayName": "Running live event count", - "displayDescription": "The total number of running live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxChannelsAndLiveEventsCount", - "displayName": "Max live event quota", - "displayDescription": "The maximum number of live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxRunningChannelsAndLiveEventsCount", - "displayName": "Max running live event quota", - "displayDescription": "The maximum number of running live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Read a Video Analyzer Account", - "description": "Read a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Write a Video Analyzer Account", - "description": "Write a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Delete a Video Analyzer Account", - "description": "Delete a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Read Video", - "description": "Read any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Create or Update Video", - "description": "Create or Update any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Delete Video", - "description": "Delete any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listStreamingToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a streaming token which can be used for video playback", - "description": "Generates a streaming token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Read Access Policy", - "description": "Read any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Create or Update Access Policy", - "description": "Create or Update any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Delete Access Policy", - "description": "Delete any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Read Edge Module", - "description": "Read any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Create or Update Edge Module", - "description": "Create or Update any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Delete Edge Module", - "description": "Delete any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/listProvisioningToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Creates a new provisioning token", - "description": "Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Read Pipeline Topology", - "description": "Read any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Create or Update Pipeline Topology", - "description": "Create or Update any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Delete Pipeline Topology", - "description": "Delete any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Read Live Pipeline", - "description": "Read any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Create or Update Live Pipeline", - "description": "Create or Update any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Delete Live Pipeline", - "description": "Delete any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/activate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Activate Live Pipeline", - "description": "Activate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/deactivate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Deactivate Live Pipeline", - "description": "Deactivate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline operation status Resource", - "operation": "Read Live Pipeline operation status", - "description": "Read any Live Pipeline operation status" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index a981c65e9834..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 5b3a9531b729..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index f02d16f94862..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index afa9980923dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index 341d2b19afc4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-list.json deleted file mode 100644 index 0c27ba8faba4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-06-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contososports", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json deleted file mode 100644 index ada67bebb011..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json +++ /dev/null @@ -1,1824 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "MetricSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "lockAggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric lock aggregation type", - "readOnly": true, - "x-nullable": true - }, - "supportedAggregationTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported aggregation types." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The metric dimensions.", - "readOnly": true - }, - "enableRegionalMdmAccount": { - "type": "boolean", - "description": "Indicates whether regional MDM account is enabled.", - "readOnly": true, - "x-nullable": false - }, - "sourceMdmAccount": { - "type": "string", - "description": "The source MDM account.", - "readOnly": true - }, - "sourceMdmNamespace": { - "type": "string", - "description": "The source MDM namespace.", - "readOnly": true - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The supported time grain types.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "Properties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service specification property." - }, - "ServiceSpecification": { - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "LogSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The diagnostic log category name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The diagnostic log category display name.", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "description": "The time range for requests in each blob.", - "readOnly": true - } - }, - "type": "object", - "description": "A diagnostic log emitted by service." - }, - "Operation": { - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/Properties", - "description": "Operation properties format." - }, - "isDataAction": { - "type": "boolean", - "description": "Whether the operation applies to data-plane.", - "x-nullable": true - }, - "actionType": { - "type": "string", - "enum": [ - "Internal" - ], - "x-ms-enum": { - "name": "ActionType", - "values": [ - { - "value": "Internal", - "description": "An internal action." - } - ], - "modelAsString": true - }, - "description": "Indicates the action type.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name" - ], - "description": "An operation." - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The storage account identity." - }, - "status": { - "type": "string", - "description": "The current status of the storage account mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - }, - "storageAuthentication": { - "type": "string", - "enum": [ - "System", - "ManagedIdentity" - ], - "x-ms-enum": { - "name": "StorageAuthentication", - "values": [ - { - "value": "System", - "description": "System authentication." - }, - { - "value": "ManagedIdentity", - "description": "Managed Identity authentication." - } - ], - "modelAsString": true - }, - "x-nullable": true - }, - "encryption": { - "$ref": "#/definitions/AccountEncryption", - "description": "The account encryption properties." - }, - "keyDelivery": { - "$ref": "#/definitions/KeyDelivery", - "description": "The Key Delivery properties for Media Services account." - }, - "publicNetworkAccess": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "values": [ - { - "value": "Enabled", - "description": "Public network access is enabled." - }, - { - "value": "Disabled", - "description": "Public network access is disabled." - } - ], - "modelAsString": true - }, - "description": "Whether or not public network access is allowed for resources under the Media Services account.", - "x-nullable": true - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the Media Services account.", - "readOnly": true, - "x-nullable": false - }, - "privateEndpointConnections": { - "items": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The Private Endpoint Connections created for the Media Service account.", - "type": "array", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "MediaServiceUpdate": { - "description": "A Media Services account update.", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "MediaServiceIdentity": { - "properties": { - "type": { - "type": "string", - "description": "The identity type." - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The Principal ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The Tenant ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "userAssignedIdentities": { - "$ref": "#/definitions/UserAssignedManagedIdentities", - "description": "The user assigned managed identities." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "UserAssignedManagedIdentity": { - "properties": { - "clientId": { - "type": "string", - "format": "uuid", - "description": "The client ID.", - "readOnly": true, - "x-nullable": true - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The principal ID.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object" - }, - "UserAssignedManagedIdentities": { - "type": "object", - "description": "The User Assigned Managed Identities.", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedManagedIdentity" - } - }, - "KeyVaultProperties": { - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." - }, - "currentKeyIdentifier": { - "type": "string", - "description": "The current key used to encrypt the Media Services account, including the key version.", - "readOnly": true - } - }, - "type": "object" - }, - "ResourceIdentity": { - "properties": { - "userAssignedIdentity": { - "type": "string", - "description": "The user assigned managed identity's ARM ID to use when accessing a resource." - }, - "useSystemAssignedIdentity": { - "type": "boolean", - "description": "Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity." - } - }, - "type": "object", - "required": [ - "useSystemAssignedIdentity" - ] - }, - "AccountEncryption": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemKey", - "CustomerKey" - ], - "x-ms-enum": { - "name": "AccountEncryptionKeyType", - "values": [ - { - "value": "SystemKey", - "description": "The Account Key is encrypted with a System Key." - }, - { - "value": "CustomerKey", - "description": "The Account Key is encrypted with a Customer Key." - } - ], - "modelAsString": true - }, - "description": "The type of key used to encrypt the Account Key." - }, - "keyVaultProperties": { - "$ref": "#/definitions/KeyVaultProperties", - "description": "The properties of the key used to encrypt the account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The Key Vault identity." - }, - "status": { - "type": "string", - "description": "The current status of the Key Vault mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "AccessControl": { - "properties": { - "defaultAction": { - "type": "string", - "enum": [ - "Allow", - "Deny" - ], - "x-ms-enum": { - "name": "DefaultAction", - "values": [ - { - "value": "Allow", - "description": "All public IP addresses are allowed." - }, - { - "value": "Deny", - "description": "Public IP addresses are blocked." - } - ], - "modelAsString": true - }, - "description": "The behavior for IP access control in Key Delivery." - }, - "ipAllowList": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty." - } - }, - "type": "object" - }, - "KeyDelivery": { - "properties": { - "accessControl": { - "$ref": "#/definitions/AccessControl", - "description": "The access control properties for Key Delivery." - } - }, - "type": "object" - }, - "MediaServiceOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of media service operation." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "A collection of Operation items." - } - }, - "type": "object", - "description": "A collection of Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/async-accounts-create.json" - }, - "Create a Media Services account-managed-identity": { - "$ref": "examples/async-accounts-create-managed-identity.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaServiceUpdate" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/async-accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List all the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { - "get": { - "summary": "Get list of group IDs.", - "description": "List supported group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get list of all group IDs.": { - "$ref": "examples/private-link-resources-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { - "get": { - "summary": "Get group ID.", - "description": "Get details of a group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get details of a group ID.": { - "$ref": "examples/private-link-resources-get-by-name.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { - "get": { - "summary": "List private endpoint connections.", - "description": "List all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get all private endpoint connections.": { - "$ref": "examples/private-endpoint-connection-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { - "get": { - "summary": "Get private endpoint connection.", - "description": "Get the details of a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-get-by-name.json" - } - } - }, - "put": { - "summary": "Update a private endpoint connection.", - "description": "Update an existing private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-put.json" - } - } - }, - "delete": { - "summary": "Delete a private endpoint connection.", - "description": "Deletes a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get media service operation status.", - "operationId": "MediaServicesOperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation ID." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/media-service-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get media service operation result.", - "operationId": "MediaServicesOperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation.": { - "$ref": "examples/media-service-operation-result-by-id.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json deleted file mode 100644 index 65e43a7f052c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "japanwest", - "api-version": "2021-11-01", - "parameters": { - "name": "contosotv", - "type": "Microsoft.Media/mediaservices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json deleted file mode 100644 index 750f34c5c32f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json deleted file mode 100644 index a83e8e479dbc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosotv", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index 9c2f1824f824..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index 65e3c93ce850..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index abe928a9d854..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 3274519b4ed3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json deleted file mode 100644 index 646624a8d488..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create-managed-identity.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json deleted file mode 100644 index 9dcedbdea92f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json deleted file mode 100644 index b56b6f2f0521..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json deleted file mode 100644 index ed2b3a370e00..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", - "api-version": "2021-11-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomovies", - "type": "Microsoft.Media/mediaServices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "provisioningState": "Succeeded", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json deleted file mode 100644 index d0238bbbe864..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Failed", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00", - "error": { - "code": "BadRequest", - "message": "Storage account cannot be accessed." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 41cac8346481..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "InProgress", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json deleted file mode 100644 index ca12783a3821..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Succeeded", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json deleted file mode 100644 index ba1a73277963..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json +++ /dev/null @@ -1,1539 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/regenerateKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Regenerate Key", - "description": "Regenerate a Media Services ACS key" - } - }, - { - "name": "Microsoft.Media/mediaservices/listKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List Keys", - "description": "List the ACS keys for the Media Services account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/listEdgePolicies/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List policies for an edge device.", - "description": "List policies for an edge device." - } - }, - { - "name": "Microsoft.Media/mediaservices/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Read Account Filter", - "description": "Read any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Create or Update Account Filter", - "description": "Create or Update any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Delete Account Filter", - "description": "Delete any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listStreamingLocators/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Streaming Locators for Asset", - "description": "List Streaming Locators for Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Read Asset Filter", - "description": "Read any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Create or Update Asset Filter", - "description": "Create or Update any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Delete Asset Filter", - "description": "Delete any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "EgressBandwidth", - "displayName": "Egress bandwidth", - "displayDescription": "Egress bandwidth in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "CPU", - "displayName": "CPU usage", - "displayDescription": "CPU usage for premium streaming endpoints. This data is not available for standard streaming endpoints.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Get a list of Media Services Live Event Metrics definitions.", - "description": "Get a list of Media Services Live Event Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "IngestBitrate", - "displayName": "Live Event ingest bitrate", - "displayDescription": "The incoming bitrate ingested for a live event, in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "IngestLastTimestamp", - "displayName": "Live Event ingest last timestamp", - "displayDescription": "Last timestamp ingested for a live event.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "IngestDriftValue", - "displayName": "Live Event ingest drift value", - "displayDescription": "Drift between the timestamp of the ingested content and the system clock, measured in seconds per minute. A non zero value indicates that the ingested content is arriving slower than system clock time.", - "unit": "Seconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "LiveOutputLastTimestamp", - "displayName": "Last output timestamp", - "displayDescription": "Timestamp of the last fragment uploaded to storage for a live event output.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "The log definition of mediaservices", - "operation": "Read mediaservices log definitions", - "description": "Gets the available logs for a Media Services Account" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "KeyDeliveryRequests", - "displayName": "Key Delivery Requests", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Service", - "operation": "Get list of Media Services Metric definitions.", - "description": "Get list of Media Services Metric definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "AssetQuota", - "displayName": "Asset quota", - "displayDescription": "How many assets are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetCount", - "displayName": "Asset count", - "displayDescription": "How many assets are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetQuotaUsedPercentage", - "displayName": "Asset quota used percentage", - "displayDescription": "Asset used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuota", - "displayName": "Content Key Policy quota", - "displayDescription": "How many content key polices are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyCount", - "displayName": "Content Key Policy count", - "displayDescription": "How many content key policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuotaUsedPercentage", - "displayName": "Content Key Policy quota used percentage", - "displayDescription": "Content Key Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuota", - "displayName": "Streaming Policy quota", - "displayDescription": "How many streaming policies are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyCount", - "displayName": "Streaming Policy count", - "displayDescription": "How many streaming policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuotaUsedPercentage", - "displayName": "Streaming Policy quota used percentage", - "displayDescription": "Streaming Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ChannelsAndLiveEventsCount", - "displayName": "Live event count", - "displayDescription": "The total number of live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "RunningChannelsAndLiveEventsCount", - "displayName": "Running live event count", - "displayDescription": "The total number of running live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxChannelsAndLiveEventsCount", - "displayName": "Max live event quota", - "displayDescription": "The maximum number of live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxRunningChannelsAndLiveEventsCount", - "displayName": "Max running live event quota", - "displayDescription": "The maximum number of running live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Read a Video Analyzer Account", - "description": "Read a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Create or Update a Video Analyzer Account", - "description": "Create or Update a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Delete a Video Analyzer Account", - "description": "Delete a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Read Video", - "description": "Read any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Create or Update Video", - "description": "Create or Update any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Delete Video", - "description": "Delete any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listStreamingToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a streaming token which can be used for video playback", - "description": "Generates a streaming token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listContentToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a content token which can be used for video playback", - "description": "Generates a content token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Read Access Policy", - "description": "Read any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Create or Update Access Policy", - "description": "Create or Update any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Delete Access Policy", - "description": "Delete any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Read Edge Module", - "description": "Read any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Create or Update Edge Module", - "description": "Create or Update any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Delete Edge Module", - "description": "Delete any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/listProvisioningToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Creates a new provisioning token", - "description": "Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Read Pipeline Topology", - "description": "Read any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Create or Update Pipeline Topology", - "description": "Create or Update any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Delete Pipeline Topology", - "description": "Delete any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Read Live Pipeline", - "description": "Read any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Create or Update Live Pipeline", - "description": "Create or Update any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Delete Live Pipeline", - "description": "Delete any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/activate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Activate Live Pipeline", - "description": "Activate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/deactivate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Deactivate Live Pipeline", - "description": "Deactivate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline operation status Resource", - "operation": "Read Live Pipeline operation status", - "description": "Read any Live Pipeline operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Read Pipeline Job", - "description": "Read any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Create or Update Pipeline Job", - "description": "Create or Update any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Delete Pipeline Job", - "description": "Delete any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/cancel/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Cancel Pipeline Job", - "description": "Cancel any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job operation status Resource", - "operation": "Read Pipeline Job operation status", - "description": "Read any Pipeline Job operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index 139a3b3064c5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 77f98fc79711..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 96af8b42d1d3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 67e5c976e141..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index c537dd9d352b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json deleted file mode 100644 index 87033ce192cb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/scenarios/AccountTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/scenarios/AccountTests.yaml deleted file mode 100644 index 15caccae82ae..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/scenarios/AccountTests.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../..../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" -scenarios: - - scenario: AccountTests - steps: - - operationId: Locations_CheckNameAvailability - exampleFile: >- - ../examples/accounts-check-name-availability.json - requestUpdate: - - replace: /parameters/name - value: $(accountName) - - operationId: Mediaservices_CreateOrUpdate - exampleFile: >- - ../examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - - operationId: Mediaservices_ListBySubscription - exampleFile: >- - ../examples/accounts-subscription-list-all-accounts.json - - operationId: Mediaservices_Get - exampleFile: >- - ../examples/accounts-get-by-name.json - - operationId: Mediaservices_List - exampleFile: >- - ../examples/accounts-list-all-accounts.json - - operationId: Mediaservices_Update - exampleFile: >- - ../examples/async-accounts-update.json - - operationId: Mediaservices_SyncStorageKeys - exampleFile: >- - ../examples/accounts-sync-storage-keys.json - requestUpdate: - - replace: /parameters/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - - operationId: Operations_List - exampleFile: >- - ../examples/operations-list-all.json - - operationId: Mediaservices_Delete - exampleFile: ../examples/accounts-delete.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json deleted file mode 100644 index d96cc7036ba0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json +++ /dev/null @@ -1,1857 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2023-01-01" - }, - "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": { - "OperationDisplay": { - "properties": { - "provider": { - "type": "string", - "description": "The service provider." - }, - "resource": { - "type": "string", - "description": "Resource on which the operation is performed." - }, - "operation": { - "type": "string", - "description": "The operation type." - }, - "description": { - "type": "string", - "description": "The operation description." - } - }, - "type": "object", - "description": "Operation details." - }, - "MetricDimension": { - "properties": { - "name": { - "type": "string", - "description": "The metric dimension name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The display name for the dimension.", - "readOnly": true - }, - "toBeExportedForShoebox": { - "type": "boolean", - "description": "Whether to export metric to shoebox.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "A metric dimension." - }, - "MetricSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The metric name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The metric display name.", - "readOnly": true - }, - "displayDescription": { - "type": "string", - "description": "The metric display description.", - "readOnly": true - }, - "unit": { - "type": "string", - "enum": [ - "Bytes", - "Count", - "Milliseconds" - ], - "x-ms-enum": { - "name": "MetricUnit", - "values": [ - { - "value": "Bytes", - "description": "The number of bytes." - }, - { - "value": "Count", - "description": "The count." - }, - { - "value": "Milliseconds", - "description": "The number of milliseconds." - } - ], - "modelAsString": true - }, - "description": "The metric unit", - "readOnly": true, - "x-nullable": false - }, - "aggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric aggregation type", - "readOnly": true, - "x-nullable": false - }, - "lockAggregationType": { - "type": "string", - "enum": [ - "Average", - "Count", - "Total" - ], - "x-ms-enum": { - "name": "MetricAggregationType", - "values": [ - { - "value": "Average", - "description": "The average." - }, - { - "value": "Count", - "description": "The count of a number of items, usually requests." - }, - { - "value": "Total", - "description": "The sum." - } - ], - "modelAsString": true - }, - "description": "The metric lock aggregation type", - "readOnly": true, - "x-nullable": true - }, - "supportedAggregationTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Supported aggregation types." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The metric dimensions.", - "readOnly": true - }, - "enableRegionalMdmAccount": { - "type": "boolean", - "description": "Indicates whether regional MDM account is enabled.", - "readOnly": true, - "x-nullable": false - }, - "sourceMdmAccount": { - "type": "string", - "description": "The source MDM account.", - "readOnly": true - }, - "sourceMdmNamespace": { - "type": "string", - "description": "The source MDM namespace.", - "readOnly": true - }, - "supportedTimeGrainTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The supported time grain types.", - "readOnly": true - } - }, - "type": "object", - "description": "A metric emitted by service." - }, - "Properties": { - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "The service specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service specification property." - }, - "ServiceSpecification": { - "properties": { - "logSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/LogSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of log specifications.", - "readOnly": true - }, - "metricSpecifications": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "List of metric specifications.", - "readOnly": true - } - }, - "type": "object", - "description": "The service metric specifications." - }, - "LogSpecification": { - "properties": { - "name": { - "type": "string", - "description": "The diagnostic log category name.", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "The diagnostic log category display name.", - "readOnly": true - }, - "blobDuration": { - "type": "string", - "description": "The time range for requests in each blob.", - "readOnly": true - } - }, - "type": "object", - "description": "A diagnostic log emitted by service." - }, - "Operation": { - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "The operation display name." - }, - "origin": { - "type": "string", - "description": "Origin of the operation." - }, - "properties": { - "$ref": "#/definitions/Properties", - "description": "Operation properties format." - }, - "isDataAction": { - "type": "boolean", - "description": "Whether the operation applies to data-plane.", - "x-nullable": true - }, - "actionType": { - "type": "string", - "enum": [ - "Internal" - ], - "x-ms-enum": { - "name": "ActionType", - "values": [ - { - "value": "Internal", - "description": "An internal action." - } - ], - "modelAsString": true - }, - "description": "Indicates the action type.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name" - ], - "description": "An operation." - }, - "EntityNameAvailabilityCheckOutput": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies if the name is available." - }, - "reason": { - "type": "string", - "description": "Specifies the reason if the name is not available." - }, - "message": { - "type": "string", - "description": "Specifies the detailed reason if the name is not available." - } - }, - "type": "object", - "required": [ - "nameAvailable" - ], - "description": "The response from the check name availability request." - }, - "StorageAccount": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts." - }, - "type": { - "type": "string", - "enum": [ - "Primary", - "Secondary" - ], - "x-ms-enum": { - "name": "StorageAccountType", - "values": [ - { - "value": "Primary", - "description": "The primary storage account for the Media Services account." - }, - { - "value": "Secondary", - "description": "A secondary storage account for the Media Services account." - } - ], - "modelAsString": true - }, - "description": "The type of the storage account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The storage account identity." - }, - "status": { - "type": "string", - "description": "The current status of the storage account mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ], - "description": "The storage account details." - }, - "SyncStorageKeysInput": { - "properties": { - "id": { - "type": "string", - "description": "The ID of the storage account resource." - } - }, - "type": "object", - "description": "The input to the sync storage keys request." - }, - "MediaServiceProperties": { - "properties": { - "mediaServiceId": { - "type": "string", - "format": "uuid", - "description": "The Media Services account ID.", - "readOnly": true, - "x-nullable": false - }, - "storageAccounts": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "The storage accounts for this resource." - }, - "storageAuthentication": { - "type": "string", - "enum": [ - "System", - "ManagedIdentity" - ], - "x-ms-enum": { - "name": "StorageAuthentication", - "values": [ - { - "value": "System", - "description": "System authentication." - }, - { - "value": "ManagedIdentity", - "description": "Managed Identity authentication." - } - ], - "modelAsString": true - }, - "x-nullable": true - }, - "encryption": { - "$ref": "#/definitions/AccountEncryption", - "description": "The account encryption properties." - }, - "keyDelivery": { - "$ref": "#/definitions/KeyDelivery", - "description": "The Key Delivery properties for Media Services account." - }, - "publicNetworkAccess": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "PublicNetworkAccess", - "values": [ - { - "value": "Enabled", - "description": "Public network access is enabled." - }, - { - "value": "Disabled", - "description": "Public network access is disabled." - } - ], - "modelAsString": true - }, - "description": "Whether or not public network access is allowed for resources under the Media Services account.", - "x-nullable": true - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the Media Services account.", - "readOnly": true, - "x-nullable": false - }, - "privateEndpointConnections": { - "items": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The Private Endpoint Connections created for the Media Service account.", - "type": "array", - "readOnly": true - }, - "minimumTlsVersion": { - "type": "string", - "enum": [ - "Tls10", - "Tls11", - "Tls12", - "Tls13" - ], - "x-ms-enum": { - "name": "MinimumTlsVersion", - "values": [ - { - "value": "Tls10", - "description": "Minimum TLS version is TLS 1.0." - }, - { - "value": "Tls11", - "description": "Minimum TLS version is TLS 1.1." - }, - { - "value": "Tls12", - "description": "Minimum TLS version is TLS 1.2." - }, - { - "value": "Tls13", - "description": "Minimum TLS version is TLS 1.3." - } - ], - "modelAsString": true - }, - "default": "Tls12", - "description": "The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used." - } - }, - "type": "object", - "description": "Properties of the Media Services account." - }, - "MediaService": { - "description": "A Media Services account.", - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "MediaServiceUpdate": { - "description": "A Media Services account update.", - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "properties": { - "$ref": "#/definitions/MediaServiceProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "identity": { - "$ref": "#/definitions/MediaServiceIdentity", - "description": "The Managed Identity for the Media Services account." - } - }, - "type": "object" - }, - "ListEdgePoliciesInput": { - "properties": { - "deviceId": { - "type": "string", - "description": "Unique identifier of the edge device." - } - }, - "type": "object" - }, - "EdgeUsageDataEventHub": { - "properties": { - "name": { - "type": "string", - "description": "Name of the Event Hub where usage will be reported." - }, - "namespace": { - "type": "string", - "description": "Namespace of the Event Hub where usage will be reported." - }, - "token": { - "type": "string", - "description": "SAS token needed to interact with Event Hub." - } - }, - "type": "object" - }, - "EdgeUsageDataCollectionPolicy": { - "properties": { - "dataCollectionFrequency": { - "type": "string", - "description": "Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "dataReportingFrequency": { - "type": "string", - "description": "Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H." - }, - "maxAllowedUnreportedUsageDuration": { - "type": "string", - "description": "Maximum time for which the functionality of the device will not be hampered for not reporting the usage data." - }, - "eventHubDetails": { - "$ref": "#/definitions/EdgeUsageDataEventHub", - "description": "Details of Event Hub where the usage will be reported." - } - }, - "type": "object" - }, - "EdgePolicies": { - "properties": { - "usageDataCollectionPolicy": { - "$ref": "#/definitions/EdgeUsageDataCollectionPolicy" - } - }, - "type": "object" - }, - "MediaServiceIdentity": { - "properties": { - "type": { - "type": "string", - "description": "The identity type." - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The Principal ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "tenantId": { - "type": "string", - "format": "uuid", - "description": "The Tenant ID of the identity.", - "readOnly": true, - "x-nullable": true - }, - "userAssignedIdentities": { - "$ref": "#/definitions/UserAssignedManagedIdentities", - "description": "The user assigned managed identities." - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "UserAssignedManagedIdentity": { - "properties": { - "clientId": { - "type": "string", - "format": "uuid", - "description": "The client ID.", - "readOnly": true, - "x-nullable": true - }, - "principalId": { - "type": "string", - "format": "uuid", - "description": "The principal ID.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object" - }, - "UserAssignedManagedIdentities": { - "type": "object", - "description": "The User Assigned Managed Identities.", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedManagedIdentity" - } - }, - "KeyVaultProperties": { - "properties": { - "keyIdentifier": { - "type": "string", - "description": "The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey)." - }, - "currentKeyIdentifier": { - "type": "string", - "description": "The current key used to encrypt the Media Services account, including the key version.", - "readOnly": true - } - }, - "type": "object" - }, - "ResourceIdentity": { - "properties": { - "userAssignedIdentity": { - "type": "string", - "description": "The user assigned managed identity's ARM ID to use when accessing a resource." - }, - "useSystemAssignedIdentity": { - "type": "boolean", - "description": "Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity." - } - }, - "type": "object", - "required": [ - "useSystemAssignedIdentity" - ] - }, - "AccountEncryption": { - "properties": { - "type": { - "type": "string", - "enum": [ - "SystemKey", - "CustomerKey" - ], - "x-ms-enum": { - "name": "AccountEncryptionKeyType", - "values": [ - { - "value": "SystemKey", - "description": "The Account Key is encrypted with a System Key." - }, - { - "value": "CustomerKey", - "description": "The Account Key is encrypted with a Customer Key." - } - ], - "modelAsString": true - }, - "description": "The type of key used to encrypt the Account Key." - }, - "keyVaultProperties": { - "$ref": "#/definitions/KeyVaultProperties", - "description": "The properties of the key used to encrypt the account." - }, - "identity": { - "$ref": "#/definitions/ResourceIdentity", - "description": "The Key Vault identity." - }, - "status": { - "type": "string", - "description": "The current status of the Key Vault mapping.", - "readOnly": true - } - }, - "type": "object", - "required": [ - "type" - ] - }, - "AccessControl": { - "properties": { - "defaultAction": { - "type": "string", - "enum": [ - "Allow", - "Deny" - ], - "x-ms-enum": { - "name": "DefaultAction", - "values": [ - { - "value": "Allow", - "description": "All public IP addresses are allowed." - }, - { - "value": "Deny", - "description": "Public IP addresses are blocked." - } - ], - "modelAsString": true - }, - "description": "The behavior for IP access control in Key Delivery." - }, - "ipAllowList": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty." - } - }, - "type": "object" - }, - "KeyDelivery": { - "properties": { - "accessControl": { - "$ref": "#/definitions/AccessControl", - "description": "The access control properties for Key Delivery." - } - }, - "type": "object" - }, - "MediaServiceOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of media service operation." - }, - "OperationCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "A collection of Operation items." - } - }, - "type": "object", - "description": "A collection of Operation items." - }, - "MediaServiceCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MediaService" - }, - "description": "A collection of MediaService 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 MediaService items." - }, - "CheckNameAvailabilityInput": { - "description": "The input to the check name availability request.", - "properties": { - "name": { - "description": "The account name.", - "type": "string" - }, - "type": { - "description": "The account type. For a Media Services account, this should be 'MediaServices'.", - "type": "string" - } - }, - "type": "object" - } - }, - "paths": { - "/providers/Microsoft.Media/operations": { - "get": { - "summary": "List Operations", - "description": "Lists all the Media Services operations.", - "operationId": "Operations_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Operations": { - "$ref": "examples/operations-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the resource group", - "operationId": "Mediaservices_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-list-all-accounts.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}": { - "get": { - "summary": "Get a Media Services account", - "description": "Get the details of a Media Services account", - "operationId": "Mediaservices_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Media Services account by name": { - "$ref": "examples/accounts-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Media Services account", - "description": "Creates or updates a Media Services account", - "operationId": "Mediaservices_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaService" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a Media Services account": { - "$ref": "examples/async-accounts-create.json" - }, - "Create a Media Services account-managed-identity": { - "$ref": "examples/async-accounts-create-managed-identity.json" - } - } - }, - "delete": { - "summary": "Delete a Media Services account.", - "description": "Deletes a Media Services account", - "operationId": "Mediaservices_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Media Services account": { - "$ref": "examples/accounts-delete.json" - } - } - }, - "patch": { - "summary": "Update a Media Services account", - "description": "Updates an existing Media Services account", - "operationId": "Mediaservices_Update", - "responses": { - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/MediaService" - }, - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MediaServiceUpdate" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Media Services accounts": { - "$ref": "examples/async-accounts-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/syncStorageKeys": { - "post": { - "summary": "Synchronizes Storage Account Keys", - "description": "Synchronizes storage account keys for a storage account associated with the Media Service account.", - "operationId": "Mediaservices_SyncStorageKeys", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyncStorageKeysInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Synchronizes Storage Account Keys": { - "$ref": "examples/accounts-sync-storage-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/listEdgePolicies": { - "post": { - "summary": "List the media edge policies associated with the Media Services account.", - "description": "List all the media edge policies associated with the Media Services account.", - "operationId": "Mediaservices_ListEdgePolicies", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EdgePolicies" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListEdgePoliciesInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List the media edge policies.": { - "$ref": "examples/accounts-list-media-edge-policies.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources": { - "get": { - "summary": "Get list of group IDs.", - "description": "List supported group IDs.", - "operationId": "PrivateLinkResources_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get list of all group IDs.": { - "$ref": "examples/private-link-resources-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}": { - "get": { - "summary": "Get group ID.", - "description": "Get details of a group ID.", - "operationId": "PrivateLinkResources_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get details of a group ID.": { - "$ref": "examples/private-link-resources-get-by-name.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections": { - "get": { - "summary": "List private endpoint connections.", - "description": "List all private endpoint connections.", - "operationId": "PrivateEndpointConnections_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get all private endpoint connections.": { - "$ref": "examples/private-endpoint-connection-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}": { - "get": { - "summary": "Get private endpoint connection.", - "description": "Get the details of a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-get-by-name.json" - } - } - }, - "put": { - "summary": "Update a private endpoint connection.", - "description": "Update an existing private endpoint connection.", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-put.json" - } - } - }, - "delete": { - "summary": "Delete a private endpoint connection.", - "description": "Deletes a private endpoint connection.", - "operationId": "PrivateEndpointConnections_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The Media Services account name." - }, - { - "name": "name", - "in": "path", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete private endpoint connection.": { - "$ref": "examples/private-endpoint-connection-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability": { - "post": { - "summary": "Check Name Availability", - "description": "Checks whether the Media Service resource name is available.", - "operationId": "Locations_CheckNameAvailability", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/EntityNameAvailabilityCheckOutput" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Check Name Availability": { - "$ref": "examples/accounts-check-name-availability.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get media service operation status.", - "operationId": "MediaServicesOperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation ID." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/media-service-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/media-service-operation-status-by-id-non-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServicesOperationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get media service operation result.", - "operationId": "MediaServicesOperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaService" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "name": "locationName", - "in": "path", - "required": true, - "type": "string", - "description": "Location name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation.": { - "$ref": "examples/media-service-operation-result-by-id.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices": { - "get": { - "summary": "List Media Services accounts", - "description": "List Media Services accounts in the subscription.", - "operationId": "Mediaservices_ListBySubscription", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MediaServiceCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Media Services accounts": { - "$ref": "examples/accounts-subscription-list-all-accounts.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" - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The version of the API to be used with the client request." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-check-name-availability.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-check-name-availability.json deleted file mode 100644 index ee5f429555f7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-check-name-availability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "japanwest", - "api-version": "2023-01-01", - "parameters": { - "name": "contosotv", - "type": "Microsoft.Media/mediaservices" - } - }, - "responses": { - "200": { - "body": { - "nameAvailable": true, - "reason": "None", - "message": "" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-delete.json deleted file mode 100644 index 2c2b8066da0f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-get-by-name.json deleted file mode 100644 index 304d8b7959cc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-get-by-name.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosotv", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "00000000-0000-0000-0000-000000000001", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ], - "minimumTlsVersion": "Tls12" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-all-accounts.json deleted file mode 100644 index cd1b84b8b3ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-all-accounts.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-media-edge-policies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-media-edge-policies.json deleted file mode 100644 index fb18d4a3a963..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-list-media-edge-policies.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01", - "parameters": { - "deviceId": "contosiothubhost_contosoiotdevice" - } - }, - "responses": { - "200": { - "body": { - "usageDataCollectionPolicy": { - "dataCollectionFrequency": "PT10M", - "dataReportingFrequency": "PT1H", - "maxAllowedUnreportedUsageDuration": "PT36H", - "eventHubDetails": { - "name": "ams-x", - "namespace": "ams-y-1-1", - "token": "SharedAccessSignature sr=sb%3a%2f%2fams-x.servicebus.windows.net%2fams-y-1-1%2fPublishers%2f96a510a1-0565-492a-a67f-83d1aed1d1f6_SampleDeviceId&sig=signature_value%3d&se=1584073736&skn=EdgeUsageData" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-subscription-list-all-accounts.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-subscription-list-all-accounts.json deleted file mode 100644 index 3e161b2bf394..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-subscription-list-all-accounts.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "contosotv", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "6ac94f91-283c-4492-85a7-57976928c17d", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosotvstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - }, - { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomovies", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "72681c0f-9dd1-4f1c-95c9-8a8d7d31c4ee", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contosomoviesstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - }, - { - "name": "fabrikamnews", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/fabrikamnews", - "type": "Microsoft.Media/mediaservices", - "location": "East US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "mediaServiceId": "d96036f9-4e37-491d-8c29-5bc53a29dfcd", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Storage/storageAccounts/fabrikamnewsstore", - "type": "Primary" - } - ], - "privateEndpointConnections": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-sync-storage-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-sync-storage-keys.json deleted file mode 100644 index 313bee80d03b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/accounts-sync-storage-keys.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01", - "parameters": { - "id": "contososportsstore" - } - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create-managed-identity.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create-managed-identity.json deleted file mode 100644 index da219f935c0c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create-managed-identity.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "encryption": { - "type": "CustomerKey", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - }, - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create.json deleted file mode 100644 index 8834e812e771..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-create.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01", - "parameters": { - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", - "type": "Primary" - } - ] - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - }, - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", - "type": "Primary" - } - ] - } - } - }, - "200": { - "body": { - "name": "contososports", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports", - "type": "Microsoft.Media/mediaservices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-update.json deleted file mode 100644 index a6d27738b818..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/async-accounts-update.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01", - "parameters": { - "tags": { - "key1": "value3" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/locations/westus2/mediaServicesOperationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - }, - "body": { - "location": "South Central US", - "tags": { - "key1": "value3" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": {} - } - }, - "properties": { - "provisioningState": "InProgress", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ], - "minimumTlsVersion": "Tls12" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-result-by-id.json deleted file mode 100644 index 20acff87720f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-result-by-id.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", - "api-version": "2023-01-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "contosomovies", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomovies", - "type": "Microsoft.Media/mediaServices", - "location": "South Central US", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - }, - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "properties": { - "provisioningState": "Succeeded", - "encryption": { - "type": "CustomerKey", - "keyVaultProperties": { - "keyIdentifier": "https://keyvault.vault.azure.net/keys/key1", - "currentKeyIdentifier": "https://keyvault.vault.azure.net/keys/key1/ver1" - }, - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - }, - "storageAccounts": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/contososportsstore", - "type": "Primary", - "identity": { - "userAssignedIdentity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", - "useSystemAssignedIdentity": false - } - } - ], - "storageAuthentication": "ManagedIdentity", - "publicNetworkAccess": "Enabled", - "keyDelivery": { - "accessControl": { - "defaultAction": "Allow" - } - }, - "privateEndpointConnections": [ - { - "name": "00000000-0000-0000-0000-000000000001", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000001", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "00000000-0000-0000-0000-000000000002", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosotv/privateEndpointConnections/00000000-0000-0000-0000-000000000002", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json deleted file mode 100644 index cf83df88204b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Failed", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00", - "error": { - "code": "BadRequest", - "message": "Storage account cannot be accessed." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 2f5d62f3f734..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "InProgress", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-terminal-state.json deleted file mode 100644 index 7e7d572eded7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/media-service-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "locationName": "westus", - "operationId": "D612C429-2526-49D5-961B-885AE11406FD", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus/MediaServicesOperationStatuses/D612C429-2526-49D5-961B-885AE11406FD", - "name": "D612C429-2526-49D5-961B-885AE11406FD", - "status": "Succeeded", - "startTime": "2021-01-01T12:56:36.002812-08:00", - "endTime": "2021-01-01T12:56:36.002812-08:00" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/operations-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/operations-list-all.json deleted file mode 100644 index f27f34831137..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/operations-list-all.json +++ /dev/null @@ -1,1539 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "Microsoft.Media/register/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Registers the Media Services Resource Provider", - "description": "Registers the subscription for the Media Services resource provider and enables the creation of Media Services accounts" - } - }, - { - "name": "Microsoft.Media/unregister/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Unregisters the Media Services Resource Provider", - "description": "Unregisters the subscription for the Media Services resource provider" - } - }, - { - "name": "Microsoft.Media/checknameavailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - }, - { - "name": "Microsoft.Media/operations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Available Operations", - "operation": "Get Available Operations", - "description": "Get Available Operations" - } - }, - { - "name": "Microsoft.Media/mediaservices/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read Media Services Account", - "description": "Read any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Create or Update Media Services Account", - "description": "Create or Update any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Delete Media Services Account", - "description": "Delete any Media Services Account" - } - }, - { - "name": "Microsoft.Media/mediaservices/regenerateKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Regenerate Key", - "description": "Regenerate a Media Services ACS key" - } - }, - { - "name": "Microsoft.Media/mediaservices/listKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List Keys", - "description": "List the ACS keys for the Media Services account" - } - }, - { - "name": "Microsoft.Media/mediaservices/syncStorageKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Synchronize Storage Keys", - "description": "Synchronize the Storage Keys for an attached Azure Storage account" - } - }, - { - "name": "Microsoft.Media/mediaservices/listEdgePolicies/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "List policies for an edge device.", - "description": "List policies for an edge device." - } - }, - { - "name": "Microsoft.Media/mediaservices/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Read Event Grid Filter", - "description": "Read any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Create or Update Event Grid Filter", - "description": "Create or Update any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/eventGridFilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Event Grid Filter", - "operation": "Delete Event Grid Filter", - "description": "Delete any Event Grid Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Read Account Filter", - "description": "Read any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Create or Update Account Filter", - "description": "Create or Update any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/accountfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Account Filter", - "operation": "Delete Account Filter", - "description": "Delete any Account Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Read Asset", - "description": "Read any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Create or Update Asset", - "description": "Create or Update any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Delete Asset", - "description": "Delete any Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listContainerSas/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Asset Container SAS URLs", - "description": "List Asset Container SAS URLs" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/getEncryptionKey/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "Get Asset Encryption Key", - "description": "Get Asset Encryption Key" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/listStreamingLocators/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset", - "operation": "List Streaming Locators for Asset", - "description": "List Streaming Locators for Asset" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Read Asset Filter", - "description": "Read any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Create or Update Asset Filter", - "description": "Create or Update any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/assets/assetfilters/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Asset Filter", - "operation": "Delete Asset Filter", - "description": "Delete any Asset Filter" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Read Streaming Policy", - "description": "Read any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Create or Update Streaming Policy", - "description": "Create or Update any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Policy", - "operation": "Delete Streaming Policy", - "description": "Delete any Streaming Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Read Streaming Locator", - "description": "Read any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Create or Update Streaming Locator", - "description": "Create or Update any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "Delete Streaming Locator", - "description": "Delete any Streaming Locator" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listContentKeys/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Content Keys", - "description": "List Content Keys" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingLocators/listPaths/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Locator", - "operation": "List Paths", - "description": "List Paths" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Read Content Key Policy", - "description": "Read any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Create or Update Content Key Policy", - "description": "Create or Update any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Delete Content Key Policy", - "description": "Delete any Content Key Policy" - } - }, - { - "name": "Microsoft.Media/mediaservices/contentKeyPolicies/getPolicyPropertiesWithSecrets/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Content Key Policy", - "operation": "Get Policy Properties With Secrets", - "description": "Get Policy Properties With Secrets" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Read Transform", - "description": "Read any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Create or Update Transform", - "description": "Create or Update any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Transform", - "operation": "Delete Transform", - "description": "Delete any Transform" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Read Job", - "description": "Read any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Create or Update Job", - "description": "Create or Update any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Delete Job", - "description": "Delete any Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/transforms/jobs/cancelJob/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Job", - "operation": "Cancel Job", - "description": "Cancel Job" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/mediaservices/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Read Streaming Endpoint", - "description": "Read any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Create or Update Streaming Endpoint", - "description": "Create or Update any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Delete Streaming Endpoint", - "description": "Delete any Streaming Endpoint" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Start Streaming Endpoint Operation", - "description": "Start any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Stop Streaming Endpoint Operation", - "description": "Stop any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/scale/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint", - "operation": "Scale Streaming Endpoint Operation", - "description": "Scale any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpoints/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoints", - "operation": "Get list of Media Services Streaming Endpoint Metrics definitions.", - "description": "Get list of Media Services Streaming Endpoint Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Egress", - "displayName": "Egress", - "displayDescription": "The amount of Egress data, in bytes.", - "unit": "Bytes", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "SuccessE2ELatency", - "displayName": "Success end to end Latency", - "displayDescription": "The average latency for successful requests in milliseconds.", - "unit": "Milliseconds", - "aggregationType": "Average", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Requests to a Streaming Endpoint.", - "unit": "Count", - "aggregationType": "Total", - "dimensions": [ - { - "name": "OutputFormat", - "displayName": "Output Format", - "toBeExportedForShoebox": true - }, - { - "name": "HttpStatusCode", - "displayName": "HTTP Status Code", - "toBeExportedForShoebox": true - }, - { - "name": "ErrorCode", - "displayName": "Error Code", - "toBeExportedForShoebox": false - } - ], - "supportedAggregationTypes": [ - "Total" - ] - }, - { - "name": "EgressBandwidth", - "displayName": "Egress bandwidth", - "displayDescription": "Egress bandwidth in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "lockAggregationType": "Total", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "CPU", - "displayName": "CPU usage", - "displayDescription": "CPU usage for premium streaming endpoints. This data is not available for standard streaming endpoints.", - "unit": "Percent", - "aggregationType": "Average", - "dimensions": [], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read Live Event", - "description": "Read any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Create or Update Live Event", - "description": "Create or Update any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Delete Live Event", - "description": "Delete any Live Event" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/start/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Start Live Event Operation", - "description": "Start any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/stop/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Stop Live Event Operation", - "description": "Stop any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/reset/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Reset Live Event Operation", - "description": "Reset any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event", - "operation": "Get a list of Media Services Live Event Metrics definitions.", - "description": "Get a list of Media Services Live Event Metrics definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "IngestBitrate", - "displayName": "Live Event ingest bitrate", - "displayDescription": "The incoming bitrate ingested for a live event, in bits per second.", - "unit": "BitsPerSecond", - "aggregationType": "Average", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ] - }, - { - "name": "IngestLastTimestamp", - "displayName": "Live Event ingest last timestamp", - "displayDescription": "Last timestamp ingested for a live event.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "IngestDriftValue", - "displayName": "Live Event ingest drift value", - "displayDescription": "Drift between the timestamp of the ingested content and the system clock, measured in seconds per minute. A non zero value indicates that the ingested content is arriving slower than system clock time.", - "unit": "Seconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - }, - { - "name": "LiveOutputLastTimestamp", - "displayName": "Last output timestamp", - "displayDescription": "Timestamp of the last fragment uploaded to storage for a live event output.", - "unit": "Milliseconds", - "aggregationType": "Maximum", - "dimensions": [ - { - "name": "TrackName", - "displayName": "Track name", - "toBeExportedForShoebox": true - } - ], - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MicrosoftMediaLiveEvent", - "supportedAggregationTypes": [ - "Maximum" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Read Live Output", - "description": "Read any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Create or Update Live Output", - "description": "Create or Update any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEvents/liveOutputs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output", - "operation": "Delete Live Output", - "description": "Delete any Live Output" - } - }, - { - "name": "Microsoft.Media/mediaservices/streamingEndpointOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Streaming Endpoint Operation", - "operation": "Read Streaming Endpoint Operation", - "description": "Read any Streaming Endpoint Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveEventOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Event Operation", - "operation": "Read Live Event Operation", - "description": "Read any Live Event Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/liveOutputOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Output Operation", - "operation": "Read Live Output Operation", - "description": "Read any Live Output Operation" - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Services Account", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource." - }, - "origin": "system" - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "The log definition of mediaservices", - "operation": "Read mediaservices log definitions", - "description": "Gets the available logs for a Media Services Account" - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "KeyDeliveryRequests", - "displayName": "Key Delivery Requests", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.Media/mediaservices/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Media Service", - "operation": "Get list of Media Services Metric definitions.", - "description": "Get list of Media Services Metric definitions." - }, - "origin": "system", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "AssetQuota", - "displayName": "Asset quota", - "displayDescription": "How many assets are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetCount", - "displayName": "Asset count", - "displayDescription": "How many assets are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "AssetQuotaUsedPercentage", - "displayName": "Asset quota used percentage", - "displayDescription": "Asset used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuota", - "displayName": "Content Key Policy quota", - "displayDescription": "How many content key polices are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyCount", - "displayName": "Content Key Policy count", - "displayDescription": "How many content key policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ContentKeyPolicyQuotaUsedPercentage", - "displayName": "Content Key Policy quota used percentage", - "displayDescription": "Content Key Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuota", - "displayName": "Streaming Policy quota", - "displayDescription": "How many streaming policies are allowed for current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyCount", - "displayName": "Streaming Policy count", - "displayDescription": "How many streaming policies are already created in current media service account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "StreamingPolicyQuotaUsedPercentage", - "displayName": "Streaming Policy quota used percentage", - "displayDescription": "Streaming Policy used percentage in current media service account", - "unit": "Percent", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "MediaServiceQuotaAndUsage", - "supportedAggregationTypes": [ - "Average" - ], - "supportedTimeGrainTypes": [ - "PT1H", - "PT6H", - "PT12H", - "P1D" - ] - }, - { - "name": "ChannelsAndLiveEventsCount", - "displayName": "Live event count", - "displayDescription": "The total number of live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "RunningChannelsAndLiveEventsCount", - "displayName": "Running live event count", - "displayDescription": "The total number of running live events in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxChannelsAndLiveEventsCount", - "displayName": "Max live event quota", - "displayDescription": "The maximum number of live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - }, - { - "name": "MaxRunningChannelsAndLiveEventsCount", - "displayName": "Max running live event quota", - "displayDescription": "The maximum number of running live events allowed in the current media services account", - "unit": "Count", - "aggregationType": "Average", - "enableRegionalMdmAccount": true, - "sourceMdmNamespace": "ClusterResource_ChannelsAndLiveEvents", - "supportedAggregationTypes": [ - "Average" - ] - } - ] - } - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Read a Video Analyzer Account", - "description": "Read a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Create or Update a Video Analyzer Account", - "description": "Create or Update a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Delete a Video Analyzer Account", - "description": "Delete a Video Analyzer Account" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Analyzer Account", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Read Video", - "description": "Read any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Create or Update Video", - "description": "Create or Update any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Delete Video", - "description": "Delete any Video" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listStreamingToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a streaming token which can be used for video playback", - "description": "Generates a streaming token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/videos/listContentToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Video Resource", - "operation": "Generates a content token which can be used for video playback", - "description": "Generates a content token which can be used for video playback" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Read Access Policy", - "description": "Read any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Create or Update Access Policy", - "description": "Create or Update any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/accessPolicies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Access Policy Resource", - "operation": "Delete Access Policy", - "description": "Delete any Access Policy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Read Edge Module", - "description": "Read any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Create or Update Edge Module", - "description": "Create or Update any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Delete Edge Module", - "description": "Delete any Edge Module" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/edgeModules/listProvisioningToken/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Edge Module Resource", - "operation": "Creates a new provisioning token", - "description": "Creates a new provisioning token. A provisioning token allows for a single instance of Azure Video analyzer IoT edge module to be initialized and authorized to the cloud account. The provisioning token itself is short lived and it is only used for the initial handshake between IoT edge module and the cloud. After the initial handshake, the IoT edge module will agree on a set of authentication keys which will be auto-rotated as long as the module is able to periodically connect to the cloud. A new provisioning token can be generated for the same IoT edge module in case the module state lost or reset" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Read Pipeline Topology", - "description": "Read any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Create or Update Pipeline Topology", - "description": "Create or Update any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineTopologies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Topology Resource", - "operation": "Delete Pipeline Topology", - "description": "Delete any Pipeline Topology" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Read Live Pipeline", - "description": "Read any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Create or Update Live Pipeline", - "description": "Create or Update any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Delete Live Pipeline", - "description": "Delete any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/activate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Activate Live Pipeline", - "description": "Activate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/deactivate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline Resource", - "operation": "Deactivate Live Pipeline", - "description": "Deactivate any Live Pipeline" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/livePipelines/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Live Pipeline operation status Resource", - "operation": "Read Live Pipeline operation status", - "description": "Read any Live Pipeline operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Read Pipeline Job", - "description": "Read any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Create or Update Pipeline Job", - "description": "Create or Update any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Delete Pipeline Job", - "description": "Delete any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/cancel/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job Resource", - "operation": "Cancel Pipeline Job", - "description": "Cancel any Pipeline Job" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/pipelineJobs/operationsStatus/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Pipeline Job operation status Resource", - "operation": "Read Pipeline Job operation status", - "description": "Read any Pipeline Job operation status" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateLinkResources/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateLinkResource", - "operation": "Read Private Link Resource", - "description": "Read any Private Link Resource" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Read Private Endpoint Connection Proxy", - "description": "Read any Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnectionProxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Read Private Endpoint Connection", - "description": "Read any Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Create Private Endpoint Connection", - "description": "Create Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Media Services", - "resource": "PrivateEndpointConnection", - "operation": "Delete Private Endpoint Connection", - "description": "Delete Private Endpoint Connection" - } - }, - { - "name": "Microsoft.Media/videoAnalyzers/privateEndpointConnectionOperations/read", - "display": { - "provider": "Microsoft Media Services", - "resource": "Private Endpoint Connection Operation", - "operation": "Read Private Endpoint Connection Operation", - "description": "Read any Private Endpoint Connection Operation" - } - }, - { - "name": "Microsoft.Media/locations/checkNameAvailability/action", - "display": { - "provider": "Microsoft Media Services", - "resource": "Microsoft Media Services", - "operation": "Check Name Availability", - "description": "Checks if a Media Services account name is available" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-delete.json deleted file mode 100644 index 21cb4b05a33b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-get-by-name.json deleted file mode 100644 index 5a244c4b079e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-list.json deleted file mode 100644 index 6a88915aacfa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "cn1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/pe1" - } - } - }, - { - "name": "cn2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/cn2", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "Test description" - }, - "privateEndpoint": { - "id": "/subscriptions/22222222-2222-2222-2222-222222222222/resourceGroups/reosuceGroup2/providers/Microsoft.Network/privateEndpoints/pe2" - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-put.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-put.json deleted file mode 100644 index 1fa49f07e932..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-endpoint-connection-put.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "connectionName1", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "connectionName1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateEndpointConnections/connectionName1", - "type": "Microsoft.Media/mediaservices/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Test description." - }, - "privateEndpoint": { - "id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/reosuceGroup1/providers/Microsoft.Network/privateEndpoints/privateEndpointName1" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-get-by-name.json deleted file mode 100644 index 132e2f491c3e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-get-by-name.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "name": "keydelivery", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-list.json deleted file mode 100644 index d97924272f09..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/examples/private-link-resources-list.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contososports", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "keydelivery", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fabrikam/providers/Microsoft.Media/mediaservices/contososports/privateLinkResources/keydelivery", - "type": "Microsoft.Media/mediaservices/privateLinkResources", - "properties": { - "groupId": "keydelivery", - "requiredMembers": [ - "keydelivery" - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/scenarios/AccountTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/scenarios/AccountTests.yaml deleted file mode 100644 index 15caccae82ae..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2023-01-01/scenarios/AccountTests.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../..../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" -scenarios: - - scenario: AccountTests - steps: - - operationId: Locations_CheckNameAvailability - exampleFile: >- - ../examples/accounts-check-name-availability.json - requestUpdate: - - replace: /parameters/name - value: $(accountName) - - operationId: Mediaservices_CreateOrUpdate - exampleFile: >- - ../examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - - operationId: Mediaservices_ListBySubscription - exampleFile: >- - ../examples/accounts-subscription-list-all-accounts.json - - operationId: Mediaservices_Get - exampleFile: >- - ../examples/accounts-get-by-name.json - - operationId: Mediaservices_List - exampleFile: >- - ../examples/accounts-list-all-accounts.json - - operationId: Mediaservices_Update - exampleFile: >- - ../examples/async-accounts-update.json - - operationId: Mediaservices_SyncStorageKeys - exampleFile: >- - ../examples/accounts-sync-storage-keys.json - requestUpdate: - - replace: /parameters/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - - operationId: Operations_List - exampleFile: >- - ../examples/operations-list-all.json - - operationId: Mediaservices_Delete - exampleFile: ../examples/accounts-delete.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/Encoding.json deleted file mode 100644 index b2f443172a4e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/Encoding.json +++ /dev/null @@ -1,2183 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-03-30-preview" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsExtensible": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN'." - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S)." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsExtensible": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%)." - }, - "range": { - "type": "string", - "description": "The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%)." - } - }, - "type": "object", - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsExtensible": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsExtensible": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsExtensible": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsExtensible": true - }, - "description": "Which profile of the H.264 standard should be used when encoding this layer. Default is Auto." - }, - "level": { - "type": "string", - "description": "Which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsExtensible": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsExtensible": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "description": "Represents an output file produced." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "AdaptiveStreaming", - "AACGoodQualityAudio", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p." - } - ], - "modelAsExtensible": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "audioInsightsOnly": { - "type": "boolean", - "description": "Whether to only extract audio insights when processing a video file." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsExtensible": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The default is stop." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsExtensible": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobInput, 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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsExtensible": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the job completion percentage. The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsExtensible": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsExtensible": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsExtensible": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsExtensible": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsExtensible": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "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." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$skip", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$skip", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-cancel.json deleted file mode 100644 index d18100de323e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-create.json deleted file mode 100644 index 0c45eb221624..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-create.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-03-05T23:52:20.0364205Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2018-03-05T23:52:20.0364205Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-delete.json deleted file mode 100644 index ef8e5b5d0d29..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-get-by-name.json deleted file mode 100644 index a564286d6b03..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-get-by-name.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-03-05T23:52:20.0074211Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-03-05T23:52:20.0074211Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1 output" - } - ], - "priority": "Low" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-list-all.json deleted file mode 100644 index 94b761c4bc83..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/jobs-list-all.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-03-05T23:52:19.9449439Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-03-05T23:52:19.9449439Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1 output" - } - ], - "priority": "Low" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-03-05T23:52:19.9459101Z", - "state": "Processing", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2018-03-05T23:52:19.9459101Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Processing", - "progress": 50, - "assetName": "job2 output" - } - ], - "priority": "Low" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-03-05T23:52:19.9459101Z", - "state": "Finished", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2018-03-05T23:52:19.9459101Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Finished", - "progress": 100, - "assetName": "job3 output" - } - ], - "priority": "Low" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-create.json deleted file mode 100644 index 6cf758172436..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-create.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "CreatedTransform", - "parameters": { - "properties": { - "description": "Example transform to illustrate create and update.", - "created": "0001-01-01T00:00:00-05:00", - "lastModified": "0001-01-01T00:00:00-05:00", - "outputs": [ - { - "relativePriority": null, - "onError": null, - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "CreatedTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/CreatedTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-20T13:33:30.1276806-04:00", - "description": "Example transform to illustrate create and update.", - "lastModified": "2018-03-20T13:33:30.1276806-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "200": { - "body": { - "name": "CreatedTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/CreatedTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-20T13:33:30.1276806-04:00", - "description": "Example transform to illustrate create and update.", - "lastModified": "2018-03-20T13:33:30.144677-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-delete.json deleted file mode 100644 index 61d0634926bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "SampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-get-by-name.json deleted file mode 100644 index 43cb10cae8a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "SampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "SampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-05T23:52:19.6921412-05:00", - "description": "A sample transform using the standard encoder with a built in preset.", - "lastModified": "2018-03-05T23:52:19.6921412-05:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-list-all.json deleted file mode 100644 index 38c68e78c16e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "SampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-20T13:33:29.4642953-04:00", - "description": "A sample transform using the standard encoder with a built in preset.", - "lastModified": "2018-03-20T13:33:29.4642953-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - }, - { - "name": "SampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-20T13:33:29.4682947-04:00", - "description": "A sample transform using the standard encoder with a built in preset and the video indexer.", - "lastModified": "2018-03-20T13:33:29.4682947-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "audioLanguage": "en-US", - "audioInsightsOnly": false - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-update.json deleted file mode 100644 index 21038d3bb833..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-03-30-preview/examples/transforms-update.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2018-03-30-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "TransformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "created": "0001-01-01T00:00:00-05:00", - "lastModified": "0001-01-01T00:00:00-05:00", - "outputs": [ - { - "relativePriority": null, - "onError": null, - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "TransformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/TransformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-05T23:52:19.9109582-05:00", - "description": "Example transform to illustrate update.", - "lastModified": "2018-03-05T23:52:19.9149613-05:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/Encoding.json deleted file mode 100644 index 47aa67d4ee74..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/Encoding.json +++ /dev/null @@ -1,2191 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-06-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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsExtensible": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN'." - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S)." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsExtensible": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%)." - }, - "range": { - "type": "string", - "description": "The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%)." - } - }, - "type": "object", - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsExtensible": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsExtensible": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsExtensible": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsExtensible": true - }, - "description": "Which profile of the H.264 standard should be used when encoding this layer. Default is Auto." - }, - "level": { - "type": "string", - "description": "Which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsExtensible": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsExtensible": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "description": "Represents an output file produced." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "AdaptiveStreaming", - "AACGoodQualityAudio", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p." - } - ], - "modelAsExtensible": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "audioInsightsOnly": { - "type": "boolean", - "description": "Whether to only extract audio insights when processing a video file." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsExtensible": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The default is stop." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsExtensible": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobInput, 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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsExtensible": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the job completion percentage. The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsExtensible": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsExtensible": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsExtensible": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsExtensible": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsExtensible": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided correlation data that will be returned in Job completed events." - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "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." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$skip", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$skip", - "in": "query", - "required": false, - "type": "integer", - "description": "Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-cancel.json deleted file mode 100644 index 9ce3cd1e845b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-create.json deleted file mode 100644 index 2bb32ed6bd2c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-create.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-05-31T21:08:32.3513266Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2018-05-31T21:08:32.3513266Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-delete.json deleted file mode 100644 index 1f60565c8c24..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-get-by-name.json deleted file mode 100644 index b916dc8b42f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-get-by-name.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-05-31T21:08:32.3153342Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-05-31T21:08:32.3153342Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-list-all.json deleted file mode 100644 index 891fd89ec930..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/jobs-list-all.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "ExampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-05-31T21:08:32.1913235Z", - "state": "Queued", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-05-31T21:08:32.1913235Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Queued", - "progress": 0, - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-05-31T21:08:32.1933236Z", - "state": "Processing", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2018-05-31T21:08:32.1933236Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Processing", - "progress": 50, - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/ExampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-05-31T21:08:32.1943231Z", - "state": "Finished", - "description": null, - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "label": null, - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "label": null, - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2018-05-31T21:08:32.1943231Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "error": null, - "state": "Finished", - "progress": 100, - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-create.json deleted file mode 100644 index 2a70fe190934..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-create.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "CreatedTransform", - "parameters": { - "properties": { - "description": "Example transform to illustrate create and update.", - "created": "0001-01-01T00:00:00-05:00", - "lastModified": "0001-01-01T00:00:00-05:00", - "outputs": [ - { - "relativePriority": null, - "onError": null, - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "CreatedTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/CreatedTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-05-31T21:08:32.0783474-04:00", - "description": "Example transform to illustrate create and update.", - "lastModified": "2018-05-31T21:08:32.0783474-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "200": { - "body": { - "name": "CreatedTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/CreatedTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-05-31T21:08:32.0783474-04:00", - "description": "Example transform to illustrate create and update.", - "lastModified": "2018-05-31T21:08:32.1023592-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-delete.json deleted file mode 100644 index 51179fa69b98..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "SampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-get-by-name.json deleted file mode 100644 index e55f2a349995..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "SampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "SampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-05-31T21:08:31.8853222-04:00", - "description": "A sample transform using the standard encoder with a built in preset.", - "lastModified": "2018-05-31T21:08:31.8853222-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-list-all.json deleted file mode 100644 index a13c5e01f038..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "SampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-05-31T21:08:31.4763344-04:00", - "description": "A sample transform using the standard encoder with a built in preset.", - "lastModified": "2018-05-31T21:08:31.4763344-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - }, - { - "name": "SampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/SampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-05-31T21:08:31.4803629-04:00", - "description": "A sample transform using the standard encoder with a built in preset and the video indexer.", - "lastModified": "2018-05-31T21:08:31.4803629-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "audioLanguage": "en-US", - "audioInsightsOnly": false - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-update.json deleted file mode 100644 index 2e6d19f48549..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2018-06-01-preview/examples/transforms-update.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "api-version": "2018-06-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "TransformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "created": "0001-01-01T00:00:00-05:00", - "lastModified": "0001-01-01T00:00:00-05:00", - "outputs": [ - { - "relativePriority": null, - "onError": null, - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "TransformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/TransformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-03-05T23:52:19.9109582-05:00", - "description": "Example transform to illustrate update.", - "lastModified": "2018-03-05T23:52:19.9149613-05:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/Encoding.json deleted file mode 100644 index e0f18c260ec0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/Encoding.json +++ /dev/null @@ -1,2401 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\"" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S)." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%)." - }, - "range": { - "type": "string", - "description": "The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%)." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1600 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "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." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-cancel.json deleted file mode 100644 index 0ac966b8b75b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-create.json deleted file mode 100644 index 5d89c32c60fa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-create.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.2188352Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2018-08-08T16:29:58.2188352Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-delete.json deleted file mode 100644 index 6294423759db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-get-by-name.json deleted file mode 100644 index 377c1d76d265..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-get-by-name.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.1798Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-08-08T16:29:58.1798Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index 5edc04a19e36..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2018-09-27T22:56:18.5507138Z and properties/created le 2018-09-27T22:56:28.5507138Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-09-27T22:56:18.5507138Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2018-09-27T22:56:18.5507138Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-09-27T22:56:28.5507138Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2018-09-27T22:56:28.5507138Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 0e9639af32a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2018-09-27T22:56:18.5821662Z and properties/lastmodified le 2018-09-27T22:56:28.5821662Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-09-27T22:56:28.5821662Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2018-09-27T22:56:28.5821662Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-09-27T22:56:18.5821662Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2018-09-27T22:56:18.5821662Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 0c04098bed7c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index a1dce95541ee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 72eabbf3f41b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index fbcaef2d9ce2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job4 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "assetName": "job4 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all.json deleted file mode 100644 index a389ddb0ee9c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-list-all.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.0908004Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-08-08T16:29:58.0908004Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.0927994Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2018-08-08T16:29:58.0927994Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.0927994Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2018-08-08T16:29:58.0927994Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-update.json deleted file mode 100644 index 037037159cb4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/jobs-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2018-08-08T16:29:58.3218119Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2018-08-08T16:29:58.3368364Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "High", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-create.json deleted file mode 100644 index 5ea5b1612e7f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-create.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-05-29T17:01:44.0571152-07:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2019-05-29T17:01:44.0571152-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-05-29T17:01:44.0571152-07:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2019-05-29T17:01:44.0571152-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-delete.json deleted file mode 100644 index f7377895cc28..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-get-by-name.json deleted file mode 100644 index aaa70d241f27..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-08-08T16:29:57.8095562-04:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2018-08-08T16:29:57.8095562-04:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 6e9fff4bb24f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2018-09-27T22:56:07.7621546Z and properties/created le 2018-09-27T22:56:17.7621546Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-09-27T22:56:17.7621546-07:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2018-09-27T22:56:17.7621546-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index 7a7c451a796b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2018-09-27T22:56:07.7840953Z and properties/lastmodified le 2018-09-27T22:56:17.7840953Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-09-27T22:56:17.7840953-07:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2018-09-27T22:56:17.7840953-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 73abc35d3eff..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-09-27T22:56:07.5846087-07:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2018-09-27T22:56:07.5846087-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-09-27T22:56:07.5846087-07:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2018-09-27T22:56:07.5846087-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all.json deleted file mode 100644 index 577b65d56e1d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-list-all.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-07-26T19:11:48.9717921-07:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2018-07-26T19:11:48.9717921-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2018-07-26T19:11:48.9767793-07:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2018-07-26T19:11:48.9767793-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-update.json deleted file mode 100644 index 8fd9e83f3250..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2019-05-01-preview/examples/transforms-update.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-05-29T17:01:44.2001108-07:00", - "description": "Example transform to illustrate update.", - "lastModified": "2019-05-29T17:01:44.2761137-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/Encoding.json deleted file mode 100644 index de748e60e95d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/Encoding.json +++ /dev/null @@ -1,3301 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-05-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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "CmafFormat": { - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "description": "A CMAF based output format.", - "properties": { - "streamingFormat": { - "enum": [ - "HlsAndDash", - "Hls", - "Dash" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "StreamingFormatType", - "values": [ - { - "description": "HLS and DASH streaming are both supported in this format. HLS manifest files(master and variants manifest files) and DASH media presentation description file are included in the output. This is the default streaming format.", - "value": "HlsAndDash" - }, - { - "description": "HLS streaming is supported in this format. HLS manifest files(master and variants manifest files) are included in the output.", - "value": "Hls" - }, - { - "description": "DASH streaming is supported in this format. DASH media presentation description file is included in the output.", - "value": "Dash" - } - ] - } - } - }, - "type": "object", - "x-ms-discriminator-value": "#Microsoft.Media.CmafFormat" - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "DDAudio": { - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "description": "Describes Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps.", - "properties": {}, - "type": "object", - "x-ms-discriminator-value": "#Microsoft.Media.DDAudio" - }, - "Layer": { - "properties": { - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main", - "Main10" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - }, - { - "description": "Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10)", - "value": "Main10" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "x-ms-identifiers": [], - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string \"Audio\" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "x-ms-identifiers": [ - "inputLabel" - ], - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.264 layers to be produced by the encoder." - }, - "rateControlMode": { - "description": "The video rate control mode", - "enum": [ - "ABR", - "CBR", - "CRF" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "H264RateControlMode", - "values": [ - { - "description": "Average Bitrate (ABR) mode that hits the target bitrate: Default mode.", - "value": "ABR" - }, - { - "description": "Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate.", - "value": "CBR" - }, - { - "description": "Constant Rate Factor (CRF) mode that targets at constant subjective quality.", - "value": "CRF" - } - ] - } - }, - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "x-ms-identifiers": [], - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "configurations": { - "$ref": "#/definitions/PresetConfigurations", - "description": "Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset." - }, - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "DDGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only AAC stereo audio encoded at 192 kbps." - }, - { - "value": "DDGoodQualityAudio", - "description": "Produces a single MP4 file containing only DD(Digital Dolby) stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.", - "value": "H265SingleBitrate4K" - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "x-ms-identifiers": [], - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "x-ms-identifiers": [], - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "x-ms-identifiers": [], - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "x-ms-identifiers": [], - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "x-ms-identifiers": [], - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. The query strings will not be returned in service responses to prevent sensitive data exposure." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "presetOverride": { - "$ref": "#/definitions/Preset", - "description": "A preset used to override the preset in the corresponding transform output." - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported", - "IdentityUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - }, - { - "description": "There was an error verifying to the account identity. Check and fix the identity configurations and retry. If unsuccessful, please contact support.", - "value": "IdentityUnsupported" - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content", - "Account" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - }, - { - "description": "The error is related to account information.", - "value": "Account" - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "x-ms-identifiers": [], - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "x-ms-identifiers": [], - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "PresetConfigurations": { - "description": "An object of optional configuration settings for encoder.", - "properties": { - "complexity": { - "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Complexity", - "values": [ - { - "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", - "value": "Speed" - }, - { - "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", - "value": "Balanced" - }, - { - "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", - "value": "Quality" - } - ] - } - }, - "interleaveOutput": { - "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", - "enum": [ - "NonInterleavedOutput", - "InterleavedOutput" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "InterleaveOutput", - "values": [ - { - "description": "The output is video-only or audio-only.", - "value": "NonInterleavedOutput" - }, - { - "description": "The output includes both audio and video.", - "value": "InterleavedOutput" - } - ] - } - }, - "keyFrameIntervalInSeconds": { - "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", - "format": "float", - "type": "number" - }, - "maxBitrateBps": { - "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", - "format": "int32", - "type": "integer" - }, - "maxHeight": { - "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", - "format": "int32", - "type": "integer" - }, - "maxLayers": { - "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", - "format": "int32", - "type": "integer" - }, - "minBitrateBps": { - "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", - "format": "int32", - "type": "integer" - }, - "minHeight": { - "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", - "format": "int32", - "type": "integer" - }, - "outputFormat": { - "$ref": "#/definitions/Format", - "description": "Sets the output format type. Only Mp4Format and CmafFormat are supported in current implementation. Example: set OutputFormat as CmafFormat to produce audio/video stream variant and manifest files for streaming." - } - }, - "type": "object" - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-cancel.json deleted file mode 100644 index 11ef9fdf9c18..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-create.json deleted file mode 100644 index cdae5c3e507b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2022-10-17T23:14:23.5924668Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2022-10-17T23:14:23.5924668Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:23.5924668Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:23.5924668Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-delete.json deleted file mode 100644 index 9a6dfbbd9192..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-get-by-name.json deleted file mode 100644 index 2289b31c8ab9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-get-by-name.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index 38b604a1a85b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:23.1601067Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:23.1601067Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:23.1601067Z", - "endTime": "2022-10-17T23:14:23.1601067Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:23.1601067Z", - "endTime": "2022-10-17T23:14:23.1601067Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index efe8ccc48e53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:23.3072675Z", - "endTime": "2022-10-17T23:14:23.3072675Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:23.3072675Z", - "endTime": "2022-10-17T23:14:23.3072675Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:23.3072675Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:23.3072675Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 26ac38995015..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:23.0442729Z", - "endTime": "2022-10-17T23:14:23.0442729Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:23.0442729Z", - "endTime": "2022-10-17T23:14:23.0442729Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 5d9958bdec84..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.5741443Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.5741443Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 842166ac3e6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.7212972Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.7212972Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.7212972Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.7212972Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 49d28e3ea15b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.9218505Z", - "endTime": "2022-10-17T23:14:22.9218505Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.9218505Z", - "endTime": "2022-10-17T23:14:22.9218505Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all.json deleted file mode 100644 index 52b9489d7377..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.0793293Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.0793293Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:22.0793293Z", - "endTime": "2022-10-17T23:14:22.0793293Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:22.0793293Z", - "endTime": "2022-10-17T23:14:22.0793293Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-update.json deleted file mode 100644 index e2f7f00599da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-10-17T23:14:23.9808765Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:23.9808765Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-create.json deleted file mode 100644 index 1ce1c0dd24d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.5872367Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2022-10-17T23:14:21.5872367Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.5872367Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.5872367Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.5872367Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2022-10-17T23:14:21.5872367Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.5872367Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.5872367Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-delete.json deleted file mode 100644 index f8fa953dd22c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-get-by-name.json deleted file mode 100644 index 8b4531c73739..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-get-by-name.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.4361344Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:21.4361344Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.4361344Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.4361344Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 8f5e524b5bbd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index 11aff931f7ea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 188469f8caea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.0358617Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2022-10-17T23:14:21.0358617Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.0358617Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.0358617Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.0358617Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:21.0358617Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.0358617Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.0358617Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all.json deleted file mode 100644 index cbe1ecc8c5a4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:19.9288363Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:19.9288363Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:19.9288363Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:19.9288363Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:20.2032674Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2022-10-17T23:14:20.2032674Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:20.2032674Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:20.2032674Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-update.json deleted file mode 100644 index 3f9b0facb06d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:21.9806304Z", - "description": "Example transform to illustrate update.", - "lastModified": "2022-10-17T23:14:21.9886616Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:21.9806304Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:21.9886616Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json deleted file mode 100644 index ebe4117d6c9e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json +++ /dev/null @@ -1,2448 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S)." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%)." - }, - "range": { - "type": "string", - "description": "The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%)." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "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." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_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": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-cancel.json deleted file mode 100644 index 0ac966b8b75b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-create.json deleted file mode 100644 index 72a6e43f5589..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-create.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2019-10-10T22:38:03.4426085Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2019-10-10T22:38:03.4426085Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-delete.json deleted file mode 100644 index 6294423759db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-get-by-name.json deleted file mode 100644 index 183087a8b7f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index 42e7944ca8b5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2019-10-10T22:38:13.1259050Z and properties/created le 2019-10-10T22:38:23.1259050Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2019-10-10T22:38:13.125905Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2019-10-10T22:38:13.125905Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:03.125905Z", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:03.125905Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2019-10-10T22:38:23.125905Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2019-10-10T22:38:23.125905Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:03.125905Z", - "endTime": "2019-10-10T22:38:03.125905Z", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:03.125905Z", - "endTime": "2019-10-10T22:38:03.125905Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index a723ced65f38..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2019-10-10T22:38:13.1931019Z and properties/lastmodified le 2019-10-10T22:38:23.1931019Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2019-10-10T22:38:23.1931019Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "2019-10-10T22:38:23.1931019Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:03.1931019Z", - "endTime": "2019-10-10T22:38:03.1931019Z", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:03.1931019Z", - "endTime": "2019-10-10T22:38:03.1931019Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2019-10-10T22:38:13.1931019Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "2019-10-10T22:38:13.1931019Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:03.1931019Z", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:03.1931019Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index b12477bd32b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:03.0624915Z", - "endTime": "2019-10-10T22:38:03.0624915Z", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:03.0624915Z", - "endTime": "2019-10-10T22:38:03.0624915Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 8da7f11bcff9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.7835215Z", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.7835215Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index cc423fb405ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.8754914Z", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.8754914Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.8754914Z", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.8754914Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 63b51a77a858..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job4 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.9885137Z", - "endTime": "2019-10-10T22:38:02.9885137Z", - "assetName": "job4 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.9885137Z", - "endTime": "2019-10-10T22:38:02.9885137Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all.json deleted file mode 100644 index 41a11d9d0f13..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-list-all.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "Low", - "correlationData": {} - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job2 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.6465994Z", - "assetName": "job2 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.6465994Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job3 input" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2019-10-10T22:28:02.6465994Z", - "endTime": "2019-10-10T22:38:02.6465994Z", - "assetName": "job3 output" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2019-10-10T22:28:02.6465994Z", - "endTime": "2019-10-10T22:38:02.6465994Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-update.json deleted file mode 100644 index a97220dda808..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/jobs-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "assetName": "job1 input" - } - ] - }, - "lastModified": "2019-10-10T22:38:03.737608Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1 output" - } - ], - "priority": "High", - "correlationData": {} - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-create.json deleted file mode 100644 index ae90e1d46c54..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-create.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:02.2021719-07:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2019-10-10T22:38:02.2021719-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:02.2021719-07:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2019-10-10T22:38:02.2021719-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-delete.json deleted file mode 100644 index f7377895cc28..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-get-by-name.json deleted file mode 100644 index ac965babfe81..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:01.9599144-07:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2019-10-10T22:38:01.9599144-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index cb09769d7c9d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2019-10-10T22:38:01.7859346Z and properties/created le 2019-10-10T22:38:11.7859346Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:11.7859346-07:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2019-10-10T22:38:11.7859346-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index c545d6075ea6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2019-10-10T22:38:01.8751625Z and properties/lastmodified le 2019-10-10T22:38:11.8751625Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:11.8751625-07:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2019-10-10T22:38:11.8751625-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index d618c5340156..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:01.5489351-07:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2019-10-10T22:38:01.5489351-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:01.5489351-07:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2019-10-10T22:38:01.5489351-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all.json deleted file mode 100644 index 567e63fa1374..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-list-all.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:01.0599386-07:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2019-10-10T22:38:01.0599386-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:01.0649389-07:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2019-10-10T22:38:01.0649389-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "insightsToExtract": "AllInsights" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-update.json deleted file mode 100644 index dba54419f1e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2018-07-01/examples/transforms-update.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2018-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2019-10-10T22:38:02.3591446-07:00", - "description": "Example transform to illustrate update.", - "lastModified": "2019-10-10T22:38:02.4291412-07:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/Encoding.json deleted file mode 100644 index 02d287dfdbf7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/Encoding.json +++ /dev/null @@ -1,3099 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Layer", - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate4K", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-cancel.json deleted file mode 100644 index 550a8aaf77c8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-create.json deleted file mode 100644 index 0a080128b740..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:49.7274668Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2021-01-26T13:35:49.7274668Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T05:35:49.7274668-08:00", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T05:35:49.7274668-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-delete.json deleted file mode 100644 index 2b68932ec48f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-get-by-name.json deleted file mode 100644 index 8f4f6197904b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index 4f8b14ffebff..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-01-26T13:35:59.4284656Z and properties/created le 2021-01-26T13:36:09.4284656Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:59.4284656Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:59.4284656Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.4284656Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.4284656Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:59.4284656Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:59.4284656Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:36:09.4284656Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:36:09.4284656Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.4294655Z", - "endTime": "2021-01-26T13:35:49.4294655Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.4294655Z", - "endTime": "2021-01-26T13:35:49.4294655Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:36:09.4284656Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:36:09.4284656Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 107f6990a7b9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-01-26T13:35:59.5194661Z and properties/lastmodified le 2021-01-26T13:36:09.5194661Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:36:09.5194661Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:36:09.5194661Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.5194661Z", - "endTime": "2021-01-26T13:35:49.5194661Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.5194661Z", - "endTime": "2021-01-26T13:35:49.5194661Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:36:09.5194661Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:36:09.5194661Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-01-26T13:35:59.5194661Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:59.5194661Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.5194661Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.5194661Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:59.5194661Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:59.5194661Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 70d677647acb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.3314672Z", - "endTime": "2021-01-26T13:35:49.3314672Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.3314672Z", - "endTime": "2021-01-26T13:35:49.3314672Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index ae389d22e87b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.981468Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.981468Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index dd65f1ec9733..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.0964684Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.0964684Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.0964684Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.0964684Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 44f684becb2f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:49.2384669Z", - "endTime": "2021-01-26T13:35:49.2384669Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:49.2384669Z", - "endTime": "2021-01-26T13:35:49.2384669Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all.json deleted file mode 100644 index 4739cd3ff59a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.3299535Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.3299535Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "0001-01-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-01-26T13:25:48.3299535Z", - "endTime": "2021-01-26T13:35:48.3299535Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-01-26T13:25:48.3299535Z", - "endTime": "2021-01-26T13:35:48.3299535Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-update.json deleted file mode 100644 index b7cb00bc3083..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "0001-01-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-01-26T13:35:50.1029813Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T05:35:50.1029813-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-create.json deleted file mode 100644 index cbaabae0a310..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.7499582-08:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-01-26T13:35:47.7499582-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.7499582Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.7499582-08:00", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-01-26T13:35:47.7499582-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.7499582Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.7499582Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-delete.json deleted file mode 100644 index 4a6cf2b6b7b3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-get-by-name.json deleted file mode 100644 index 4901bdaa67d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.5799573-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:47.5799573-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.5799573Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.5799573Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index a8a1c733fca7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-01-26T13:35:47.4419559Z and properties/created le 2021-01-26T13:35:57.4419559Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:57.4419559-08:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-01-26T13:35:57.4419559-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:57.4419559Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:57.4419559Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index 0b9a921098b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-01-26T13:35:47.5239560Z and properties/lastmodified le 2021-01-26T13:35:57.5239560Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:57.523956-08:00", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-01-26T13:35:57.523956-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:57.523956Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:57.523956Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index bc617355e544..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.1144419-08:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-01-26T13:35:47.1144419-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.1144419Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:47.1144419-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:47.1144419-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:47.1144419Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:47.1144419Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all.json deleted file mode 100644 index 05cc796a7f60..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:46.2354434-08:00", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-01-26T13:35:46.2354434-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:46.2354434Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:46.2354434Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:46.3584429-08:00", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-01-26T13:35:46.3584429-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:46.3584429Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:46.3584429Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-update.json deleted file mode 100644 index 765a4d18dba7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2020-05-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2020-05-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-01-26T13:35:48.1389546-08:00", - "description": "Example transform to illustrate update.", - "lastModified": "2021-01-26T13:35:48.1769542-08:00", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-01-26T13:35:48.1389546Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-01-26T13:35:48.1769542Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/Encoding.json deleted file mode 100644 index 5a09bb0de202..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/Encoding.json +++ /dev/null @@ -1,3205 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "Layer": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Layer", - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "x-ms-identifiers": [], - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "x-ms-identifiers": [ - "inputLabel" - ], - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Layer", - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.264 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "x-ms-identifiers": [], - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "x-ms-discriminator-value": "#Microsoft.Media.PngLayer", - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "configurations": { - "$ref": "#/definitions/PresetConfigurations", - "description": "PresetConfigurations are only supported for the ContentAwareEncoding and H265ContentAwareEncoding built-in presets. These settings will not affect other built-in or custom defined presets." - }, - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate4K", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "x-ms-identifiers": [], - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "x-ms-identifiers": [], - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "x-ms-identifiers": [], - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "x-ms-identifiers": [], - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "x-ms-identifiers": [], - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. The query strings will not be returned in service responses to prevent sensitive data exposure." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "presetOverride": { - "$ref": "#/definitions/Preset", - "description": "A preset used to override the preset in the corresponding transform output." - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "x-ms-identifiers": [], - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "x-ms-identifiers": [], - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "PresetConfigurations": { - "description": "An object of optional configuration settings for encoder.", - "properties": { - "complexity": { - "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Complexity", - "values": [ - { - "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", - "value": "Speed" - }, - { - "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", - "value": "Balanced" - }, - { - "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", - "value": "Quality" - } - ] - } - }, - "interleaveOutput": { - "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", - "enum": [ - "NonInterleavedOutput", - "InterleavedOutput" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "InterleaveOutput", - "values": [ - { - "description": "The output is video-only or audio-only.", - "value": "NonInterleavedOutput" - }, - { - "description": "The output includes both audio and video.", - "value": "InterleavedOutput" - } - ] - } - }, - "keyFrameIntervalInSeconds": { - "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", - "format": "float", - "type": "number" - }, - "maxBitrateBps": { - "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", - "format": "int32", - "type": "integer" - }, - "maxHeight": { - "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", - "format": "int32", - "type": "integer" - }, - "maxLayers": { - "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", - "format": "int32", - "type": "integer" - }, - "minBitrateBps": { - "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", - "format": "int32", - "type": "integer" - }, - "minHeight": { - "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-cancel.json deleted file mode 100644 index bdc89d0623b3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-create.json deleted file mode 100644 index b4b7674a01de..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-07-12T10:44:30.6393998Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2021-07-12T10:44:30.6393998Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:30.6393998Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.6393998Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-delete.json deleted file mode 100644 index c3b45361eadb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-get-by-name.json deleted file mode 100644 index 6ca9306e13af..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index 473cd7dc00fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 496f89138580..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index ed9aa5682163..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index b5d39e2ed042..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.0631403Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.0631403Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index d8c35415641d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 291fd08f8403..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all.json deleted file mode 100644 index 1d1a99e44b4d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-update.json deleted file mode 100644 index 441532797fa2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-07-12T10:44:30.9494087Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.9494087Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-create.json deleted file mode 100644 index 657ae4fba55a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-delete.json deleted file mode 100644 index d493077038ac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-get-by-name.json deleted file mode 100644 index 8f62e35f2e71..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.2267128Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:29.2267128Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.2267128Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.2267128Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 4dffd8dcacfa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index 63599265dc18..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 438f56c4998d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all.json deleted file mode 100644 index 5254c10de189..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.1563119Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.1563119Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.1563119Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.1563119Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.281304Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.281304Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.281304Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.281304Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-update.json deleted file mode 100644 index c31b656154da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-06-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2021-06-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.6217348Z", - "description": "Example transform to illustrate update.", - "lastModified": "2021-07-12T10:44:29.6267341Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.6217348Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.6267341Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json deleted file mode 100644 index 3f18a9f2925d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json +++ /dev/null @@ -1,3233 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "Layer": { - "properties": { - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main", - "Main10" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - }, - { - "description": "Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10)", - "value": "Main10" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the Subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "x-ms-identifiers": [], - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "x-ms-identifiers": [ - "inputLabel" - ], - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.264 layers to be produced by the encoder." - }, - "rateControlMode": { - "description": "The video rate control mode", - "enum": [ - "ABR", - "CBR", - "CRF" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "H264RateControlMode", - "values": [ - { - "description": "Average Bitrate (ABR) mode that hits the target bitrate: Default mode.", - "value": "ABR" - }, - { - "description": "Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate.", - "value": "CBR" - }, - { - "description": "Constant Rate Factor (CRF) mode that targets at constant subjective quality.", - "value": "CRF" - } - ] - } - }, - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "x-ms-identifiers": [], - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "configurations": { - "$ref": "#/definitions/PresetConfigurations", - "description": "Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset." - }, - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate4K", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "x-ms-identifiers": [], - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "x-ms-identifiers": [], - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "x-ms-identifiers": [], - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "x-ms-identifiers": [], - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "x-ms-identifiers": [], - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. The query strings will not be returned in service responses to prevent sensitive data exposure." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "presetOverride": { - "$ref": "#/definitions/Preset", - "description": "A preset used to override the preset in the corresponding transform output." - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "x-ms-identifiers": [], - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "x-ms-identifiers": [], - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "PresetConfigurations": { - "description": "An object of optional configuration settings for encoder.", - "properties": { - "complexity": { - "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Complexity", - "values": [ - { - "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", - "value": "Speed" - }, - { - "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", - "value": "Balanced" - }, - { - "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", - "value": "Quality" - } - ] - } - }, - "interleaveOutput": { - "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", - "enum": [ - "NonInterleavedOutput", - "InterleavedOutput" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "InterleaveOutput", - "values": [ - { - "description": "The output is video-only or audio-only.", - "value": "NonInterleavedOutput" - }, - { - "description": "The output includes both audio and video.", - "value": "InterleavedOutput" - } - ] - } - }, - "keyFrameIntervalInSeconds": { - "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", - "format": "float", - "type": "number" - }, - "maxBitrateBps": { - "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", - "format": "int32", - "type": "integer" - }, - "maxHeight": { - "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", - "format": "int32", - "type": "integer" - }, - "maxLayers": { - "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", - "format": "int32", - "type": "integer" - }, - "minBitrateBps": { - "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", - "format": "int32", - "type": "integer" - }, - "minHeight": { - "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-cancel.json deleted file mode 100644 index 1411466bff10..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-create.json deleted file mode 100644 index 01d37f2763aa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-07-12T10:44:30.6393998Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2021-07-12T10:44:30.6393998Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:30.6393998Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.6393998Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-delete.json deleted file mode 100644 index d6ee433e9e79..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-get-by-name.json deleted file mode 100644 index 19eed9fea6fc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index f4e0c2c92def..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le 2021-11-01T00:00:20.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4143905Z", - "endTime": "2021-07-12T10:44:30.4143905Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:20Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 2bb5f2a10793..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le 2021-11-01T00:00:20.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z", - "endTime": "2021-07-12T10:44:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:20Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.4893941Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.4893941Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 1034180ff11f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.3393701Z", - "endTime": "2021-07-12T10:44:30.3393701Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 3e90973d8de1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.0631403Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.0631403Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 93fbbd71ce2d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.1393325Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.1393325Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 15cb4dbc82d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:30.2743374Z", - "endTime": "2021-07-12T10:44:30.2743374Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all.json deleted file mode 100644 index 8e619592d973..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-11-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2021-07-12T10:34:29.691737Z", - "endTime": "2021-07-12T10:44:29.691737Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-update.json deleted file mode 100644 index ec6f5dc5720c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-11-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-07-12T10:44:30.9494087Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:30.9494087Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-create.json deleted file mode 100644 index 004712339822..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.3367225Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2021-07-12T10:44:29.3367225Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.3367225Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.3367225Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-delete.json deleted file mode 100644 index 8b1bc1ae017c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-get-by-name.json deleted file mode 100644 index 76cde7f91778..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.2267128Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:29.2267128Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.2267128Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.2267128Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 4c1789c6f245..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le 2021-11-01T00:00:10.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-11-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-11-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index e4c344817f6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le 2021-11-01T00:00:10.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-11-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-11-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-11-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-11-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 594dd6fbaaad..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.9563077Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.9563077Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.9563077Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.9563077Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all.json deleted file mode 100644 index d6bae816296b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.1563119Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2021-07-12T10:44:28.1563119Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.1563119Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.1563119Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:28.281304Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2021-07-12T10:44:28.281304Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:28.281304Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:28.281304Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-update.json deleted file mode 100644 index 11a28ba64ecd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2021-11-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2021-11-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-07-12T10:44:29.6217348Z", - "description": "Example transform to illustrate update.", - "lastModified": "2021-07-12T10:44:29.6267341Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-12T10:44:29.6217348Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-12T10:44:29.6267341Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json deleted file mode 100644 index f935869023ef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json +++ /dev/null @@ -1,3295 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-07-01" - }, - "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": { - "Preset": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." - }, - "Codec": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "label": { - "type": "string", - "description": "An optional label for the codec. The label can be used to control muxing behavior." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes the basic properties of all codecs." - }, - "Audio": { - "x-ms-discriminator-value": "#Microsoft.Media.Audio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "channels": { - "type": "integer", - "format": "int32", - "description": "The number of channels in the audio." - }, - "samplingRate": { - "type": "integer", - "format": "int32", - "description": "The sampling rate to use for encoding in hertz." - }, - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The bitrate, in bits per second, of the output encoded audio." - } - }, - "type": "object", - "description": "Defines the common properties for all audio codecs." - }, - "AacAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.AacAudio", - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "AacLc", - "HeAacV1", - "HeAacV2" - ], - "x-ms-enum": { - "name": "AacAudioProfile", - "values": [ - { - "value": "AacLc", - "description": "Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC)." - }, - { - "value": "HeAacV1", - "description": "Specifies that the output audio is to be encoded into HE-AAC v1 profile." - }, - { - "value": "HeAacV2", - "description": "Specifies that the output audio is to be encoded into HE-AAC v2 profile." - } - ], - "modelAsString": true - }, - "description": "The encoding profile to be used when encoding audio with AAC." - } - }, - "type": "object", - "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." - }, - "DDAudio": { - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "description": "Describes Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps.", - "properties": {}, - "type": "object", - "x-ms-discriminator-value": "#Microsoft.Media.DDAudio" - }, - "Fade": { - "description": "Describes the properties of a Fade effect applied to the input media.", - "properties": { - "duration": { - "description": "The Duration of the fade effect in the video. The value can be in ISO 8601 format (For example, PT05S to fade In/Out a color during 5 seconds), or a frame count (For example, 10 to fade 10 frames from the start time), or a relative value to stream duration (For example, 10% to fade 10% of stream duration)", - "format": "duration", - "type": "string" - }, - "fadeColor": { - "description": "The Color for the fade In/Out. it can be on the CSS Level1 colors https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords or an RGB/hex value: e.g: rgb(255,0,0), 0xFF0000 or #FF0000", - "type": "string" - }, - "start": { - "description": "The position in the input video from where to start fade. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Default is 0", - "type": "string" - } - }, - "required": [ - "fadeColor", - "duration" - ], - "type": "object" - }, - "Layer": { - "properties": { - "width": { - "type": "string", - "description": "The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input." - }, - "height": { - "type": "string", - "description": "The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input." - }, - "label": { - "type": "string", - "description": "The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file." - } - }, - "type": "object", - "description": "The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution." - }, - "H265VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H265Layer": { - "allOf": [ - { - "$ref": "#/definitions/H265VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Main", - "Main10" - ], - "x-ms-enum": { - "name": "H265VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.265 profile." - }, - { - "value": "Main", - "description": "Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier)" - }, - { - "description": "Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10)", - "value": "Main10" - } - ], - "modelAsString": true - }, - "description": "We currently support Main. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." - }, - "Video": { - "x-ms-discriminator-value": "#Microsoft.Media.Video", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": { - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize" - }, - "syncMode": { - "type": "string", - "enum": [ - "Auto", - "Passthrough", - "Cfr", - "Vfr" - ], - "x-ms-enum": { - "name": "VideoSyncMode", - "values": [ - { - "value": "Auto", - "description": "This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr." - }, - { - "value": "Passthrough", - "description": "The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior" - }, - { - "value": "Cfr", - "description": "Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value" - }, - { - "value": "Vfr", - "description": "Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input" - } - ], - "modelAsString": true - }, - "description": "The Video Sync Mode" - } - }, - "type": "object", - "description": "Describes the basic properties for encoding the input video." - }, - "H265Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H265Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "sceneChangeDetection": { - "type": "boolean", - "description": "Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - }, - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H265Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more economical. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H265Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.265 layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.265 codec." - }, - "TrackDescriptor": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" - }, - "AudioTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": { - "channelMapping": { - "type": "string", - "enum": [ - "FrontLeft", - "FrontRight", - "Center", - "LowFrequencyEffects", - "BackLeft", - "BackRight", - "StereoLeft", - "StereoRight" - ], - "x-ms-enum": { - "name": "ChannelMapping", - "values": [ - { - "value": "FrontLeft", - "description": "The Front Left Channel." - }, - { - "value": "FrontRight", - "description": "The Front Right Channel." - }, - { - "value": "Center", - "description": "The Center Channel." - }, - { - "value": "LowFrequencyEffects", - "description": "Low Frequency Effects Channel. Sometimes referred to as the subwoofer." - }, - { - "value": "BackLeft", - "description": "The Back Left Channel. Sometimes referred to as the Left Surround Channel." - }, - { - "value": "BackRight", - "description": "The Back Right Channel. Sometimes referred to as the Right Surround Channel." - }, - { - "value": "StereoLeft", - "description": "The Left Stereo channel. Sometimes referred to as Down Mix Left." - }, - { - "value": "StereoRight", - "description": "The Right Stereo channel. Sometimes referred to as Down Mix Right." - } - ], - "modelAsString": true - }, - "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." - } - }, - "type": "object", - "description": "A TrackSelection to select audio tracks." - }, - "SelectAudioTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectAudioTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectAudioTrackById", - "allOf": [ - { - "$ref": "#/definitions/AudioTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select audio tracks from the input by specifying a track identifier." - }, - "InputDefinition": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "includedTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackDescriptor" - }, - "x-ms-identifiers": [], - "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." - }, - "FromAllInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromAllInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks across all of the files provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a single track across a set of input files." - }, - "FromEachInputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.FromEachInputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": {}, - "type": "object", - "description": "An InputDefinition that looks at each input file provided to select tracks specified by the IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute to select tracks from each file given." - }, - "InputFile": { - "x-ms-discriminator-value": "#Microsoft.Media.InputFile", - "allOf": [ - { - "$ref": "#/definitions/InputDefinition" - } - ], - "properties": { - "filename": { - "type": "string", - "description": "Name of the file that this input definition applies to." - } - }, - "type": "object", - "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." - }, - "FaceDetectorPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.FaceDetectorPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "resolution": { - "type": "string", - "enum": [ - "SourceResolution", - "StandardDefinition" - ], - "x-ms-enum": { - "name": "AnalysisResolution", - "values": [ - { - "value": "SourceResolution" - }, - { - "value": "StandardDefinition" - } - ], - "modelAsString": true - }, - "description": "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected." - }, - "mode": { - "type": "string", - "enum": [ - "Analyze", - "Redact", - "Combined" - ], - "x-ms-enum": { - "name": "FaceRedactorMode", - "values": [ - { - "value": "Analyze", - "description": "Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the metadata file before faces are blurred with Redact mode." - }, - { - "value": "Redact", - "description": "Redact mode consumes the metadata file from Analyze mode and redacts the faces found." - }, - { - "value": "Combined", - "description": "Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is not desired." - } - ], - "modelAsString": true - }, - "description": "This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction." - }, - "blurType": { - "type": "string", - "enum": [ - "Box", - "Low", - "Med", - "High", - "Black" - ], - "x-ms-enum": { - "name": "BlurType", - "values": [ - { - "value": "Box", - "description": "Box: debug filter, bounding box only" - }, - { - "value": "Low", - "description": "Low: box-car blur filter" - }, - { - "value": "Med", - "description": "Med: Gaussian blur filter" - }, - { - "value": "High", - "description": "High: Confuse blur filter" - }, - { - "value": "Black", - "description": "Black: Black out filter" - } - ], - "modelAsString": true - }, - "description": "Blur type" - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." - }, - "AudioAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "audioLanguage": { - "type": "string", - "description": "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463" - }, - "mode": { - "type": "string", - "enum": [ - "Standard", - "Basic" - ], - "x-ms-enum": { - "name": "AudioAnalysisMode", - "values": [ - { - "value": "Standard", - "description": "Performs all operations included in the Basic mode, additionally performing language detection and speaker diarization." - }, - { - "value": "Basic", - "description": "This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The output of this mode includes an Insights JSON file including only the keywords, transcription,and timing information. Automatic language detection and speaker diarization are not included in this mode." - } - ], - "modelAsString": true - }, - "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." - }, - "experimentalOptions": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" - } - }, - "type": "object", - "description": "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track." - }, - "Overlay": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "inputLabel": { - "type": "string", - "description": "The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats." - }, - "start": { - "type": "string", - "format": "duration", - "description": "The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video." - }, - "end": { - "type": "string", - "format": "duration", - "description": "The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration." - }, - "fadeInDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S)." - }, - "fadeOutDuration": { - "type": "string", - "format": "duration", - "description": "The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S)." - }, - "audioGainLevel": { - "type": "number", - "format": "double", - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." - } - }, - "type": "object", - "required": [ - "@odata.type", - "inputLabel" - ], - "description": "Base type for all overlays - image, audio or video." - }, - "AudioOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties of an audio overlay." - }, - "CopyVideo": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyVideo", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." - }, - "Image": { - "x-ms-discriminator-value": "#Microsoft.Media.Image", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "start": { - "type": "string", - "description": "The position in the input video from where to start generating thumbnails. The value can be in ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10 to start at the 10th frame), or a relative value to stream duration (For example, 10% to start at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video and will only produce one thumbnail, no matter what other settings are for Step and Range. The default value is macro {Best}." - }, - "step": { - "type": "string", - "description": "The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image every 30 frames), or a relative value to stream duration (For example, 10% for one image every 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may not be exactly the one specified at transform preset start time. This is due to the encoder, which tries to select the best thumbnail between start time and Step position from start time as the first output. As the default value is 10%, it means if stream has long duration, the first generated thumbnail might be far away from the one specified at start time. Try to select reasonable value for Step if the first thumbnail is expected close to start time, or set Range value at 1 if only one thumbnail is needed at start time." - }, - "range": { - "type": "string", - "description": "The position relative to transform preset start time in the input video at which to stop generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5 minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the 300th frame from the frame at start time. If this value is 1, it means only producing one thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop at half of stream duration from start time). The default value is 100%, which means to stop at the end of the stream." - } - }, - "type": "object", - "required": [ - "start" - ], - "description": "Describes the basic properties for generating thumbnails from the input video" - }, - "Format": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "filenamePattern": { - "type": "string", - "description": "The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string \"Audio\" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename." - } - }, - "type": "object", - "required": [ - "@odata.type", - "filenamePattern" - ], - "description": "Base class for output." - }, - "ImageFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.ImageFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output image file." - }, - "JpgFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing JPEG thumbnails." - }, - "PngFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.PngFormat", - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings for producing PNG thumbnails." - }, - "CopyAudio": { - "x-ms-discriminator-value": "#Microsoft.Media.CopyAudio", - "allOf": [ - { - "$ref": "#/definitions/Codec" - } - ], - "properties": {}, - "type": "object", - "description": "A codec flag, which tells the encoder to copy the input audio bitstream." - }, - "Deinterlace": { - "properties": { - "parity": { - "type": "string", - "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" - ], - "x-ms-enum": { - "name": "DeinterlaceParity", - "values": [ - { - "value": "Auto", - "description": "Automatically detect the order of fields" - }, - { - "value": "TopFieldFirst", - "description": "Apply top field first processing of input video." - }, - { - "value": "BottomFieldFirst", - "description": "Apply bottom field first processing of input video." - } - ], - "modelAsString": true - }, - "description": "The field parity for de-interlacing, defaults to Auto." - }, - "mode": { - "type": "string", - "enum": [ - "Off", - "AutoPixelAdaptive" - ], - "x-ms-enum": { - "name": "DeinterlaceMode", - "values": [ - { - "value": "Off", - "description": "Disables de-interlacing of the source video." - }, - { - "value": "AutoPixelAdaptive", - "description": "Apply automatic pixel adaptive de-interlacing on each frame in the input video." - } - ], - "modelAsString": true - }, - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." - } - }, - "type": "object", - "description": "Describes the de-interlacing settings." - }, - "Rectangle": { - "properties": { - "left": { - "type": "string", - "description": "The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "top": { - "type": "string", - "description": "The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "width": { - "type": "string", - "description": "The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - }, - "height": { - "type": "string", - "description": "The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%)." - } - }, - "type": "object", - "description": "Describes the properties of a rectangular window applied to the input media before processing it." - }, - "Filters": { - "properties": { - "deinterlace": { - "$ref": "#/definitions/Deinterlace", - "description": "The de-interlacing settings." - }, - "rotation": { - "type": "string", - "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" - ], - "x-ms-enum": { - "name": "Rotation", - "values": [ - { - "value": "Auto", - "description": "Automatically detect and rotate as needed." - }, - { - "value": "None", - "description": "Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact." - }, - { - "value": "Rotate0", - "description": "Do not rotate the video but remove any metadata about the rotation." - }, - { - "value": "Rotate90", - "description": "Rotate 90 degrees clockwise." - }, - { - "value": "Rotate180", - "description": "Rotate 180 degrees clockwise." - }, - { - "value": "Rotate270", - "description": "Rotate 270 degrees clockwise." - } - ], - "modelAsString": true - }, - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto" - }, - "crop": { - "$ref": "#/definitions/Rectangle", - "description": "The parameters for the rectangular window with which to crop the input video." - }, - "fadeIn": { - "$ref": "#/definitions/Fade" - }, - "fadeOut": { - "$ref": "#/definitions/Fade" - }, - "overlays": { - "type": "array", - "items": { - "$ref": "#/definitions/Overlay" - }, - "x-ms-identifiers": [ - "inputLabel" - ], - "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." - } - }, - "type": "object", - "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." - }, - "VideoLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." - }, - "maxBitrate": { - "type": "integer", - "format": "int32", - "description": "The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate." - }, - "bFrames": { - "type": "integer", - "format": "int32", - "description": "The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an appropriate number based on the video profile and level." - }, - "frameRate": { - "type": "string", - "description": "The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video." - }, - "slices": { - "type": "integer", - "format": "int32", - "description": "The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame." - }, - "adaptiveBFrame": { - "type": "boolean", - "description": "Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer." - }, - "H264Layer": { - "allOf": [ - { - "$ref": "#/definitions/VideoLayer" - } - ], - "properties": { - "profile": { - "type": "string", - "enum": [ - "Auto", - "Baseline", - "Main", - "High", - "High422", - "High444" - ], - "x-ms-enum": { - "name": "H264VideoProfile", - "values": [ - { - "value": "Auto", - "description": "Tells the encoder to automatically determine the appropriate H.264 profile." - }, - { - "value": "Baseline", - "description": "Baseline profile" - }, - { - "value": "Main", - "description": "Main profile" - }, - { - "value": "High", - "description": "High profile." - }, - { - "value": "High422", - "description": "High 4:2:2 profile." - }, - { - "value": "High444", - "description": "High 4:4:4 predictive profile." - } - ], - "modelAsString": true - }, - "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." - }, - "level": { - "type": "string", - "description": "We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer." - }, - "bufferWindow": { - "type": "string", - "format": "duration", - "description": "The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S)." - }, - "crf": { - "description": "The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23.", - "format": "float", - "type": "number" - }, - "referenceFrames": { - "type": "integer", - "format": "int32", - "description": "The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting." - }, - "entropyMode": { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ], - "x-ms-enum": { - "name": "EntropyMode", - "values": [ - { - "value": "Cabac", - "description": "Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding." - }, - { - "value": "Cavlc", - "description": "Context Adaptive Variable Length Coder (CAVLC) entropy encoding." - } - ], - "modelAsString": true - }, - "description": "The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level." - } - }, - "type": "object", - "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec." - }, - "H264Video": { - "x-ms-discriminator-value": "#Microsoft.Media.H264Video", - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "complexity": { - "type": "string", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "x-ms-enum": { - "name": "H264Complexity", - "values": [ - { - "value": "Speed", - "description": "Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time." - }, - { - "value": "Balanced", - "description": "Tells the encoder to use settings that achieve a balance between speed and quality." - }, - { - "value": "Quality", - "description": "Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time." - } - ], - "modelAsString": true - }, - "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." - }, - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/H264Layer" - }, - "x-ms-identifiers": [], - "description": "The collection of output H.264 layers to be produced by the encoder." - }, - "rateControlMode": { - "description": "The video rate control mode", - "enum": [ - "ABR", - "CBR", - "CRF" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "H264RateControlMode", - "values": [ - { - "description": "Average Bitrate (ABR) mode that hits the target bitrate: Default mode.", - "value": "ABR" - }, - { - "description": "Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate.", - "value": "CBR" - }, - { - "description": "Constant Rate Factor (CRF) mode that targets at constant subjective quality.", - "value": "CRF" - } - ] - } - }, - "sceneChangeDetection": { - "type": "boolean", - "description": "Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video." - } - }, - "type": "object", - "description": "Describes all the properties for encoding a video with the H.264 codec." - }, - "JpgImage": { - "x-ms-discriminator-value": "#Microsoft.Media.JpgImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/JpgLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "spriteColumn": { - "type": "integer", - "format": "int32", - "description": "Sets the number of columns used in thumbnail sprite image. The number of rows are automatically calculated and a VTT file is generated with the coordinate mappings for each thumbnail in the sprite. Note: this value should be a positive integer and a proper value is recommended so that the output image resolution will not go beyond JPEG maximum pixel resolution limit 65535x65535." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of JPEG images from the input video." - }, - "JpgLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": { - "quality": { - "type": "integer", - "format": "int32", - "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." - } - }, - "type": "object", - "description": "Describes the settings to produce a JPEG image from the input video." - }, - "MultiBitrateFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.MultiBitrateFormat", - "allOf": [ - { - "$ref": "#/definitions/Format" - } - ], - "properties": { - "outputFiles": { - "type": "array", - "items": { - "$ref": "#/definitions/OutputFile" - }, - "x-ms-identifiers": [], - "description": "The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together ." - } - }, - "type": "object", - "description": "Describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection." - }, - "OutputFile": { - "properties": { - "labels": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of labels that describe how the encoder should multiplex video and audio into an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 and the audio track represented by a1." - } - }, - "type": "object", - "required": [ - "labels" - ], - "description": "Represents an output file produced." - }, - "Mp4Format": { - "x-ms-discriminator-value": "#Microsoft.Media.Mp4Format", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for an output ISO MP4 file." - }, - "PngImage": { - "x-ms-discriminator-value": "#Microsoft.Media.PngImage", - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "layers": { - "type": "array", - "items": { - "$ref": "#/definitions/PngLayer" - }, - "x-ms-identifiers": [], - "description": "A collection of output PNG image layers to be produced by the encoder." - } - }, - "type": "object", - "description": "Describes the properties for producing a series of PNG images from the input video." - }, - "PngLayer": { - "allOf": [ - { - "$ref": "#/definitions/Layer" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the settings to produce a PNG image from the input video." - }, - "BuiltInStandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "configurations": { - "$ref": "#/definitions/PresetConfigurations", - "description": "Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset." - }, - "presetName": { - "type": "string", - "enum": [ - "H264SingleBitrateSD", - "H264SingleBitrate720p", - "H264SingleBitrate1080p", - "AdaptiveStreaming", - "AACGoodQualityAudio", - "DDGoodQualityAudio", - "ContentAwareEncodingExperimental", - "ContentAwareEncoding", - "CopyAllBitrateNonInterleaved", - "H264MultipleBitrate1080p", - "H264MultipleBitrate720p", - "H264MultipleBitrateSD", - "H265ContentAwareEncoding", - "H265AdaptiveStreaming", - "H265SingleBitrate720p", - "H265SingleBitrate1080p", - "H265SingleBitrate4K" - ], - "x-ms-enum": { - "name": "EncoderNamedPreset", - "values": [ - { - "value": "H264SingleBitrateSD", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H264SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "AACGoodQualityAudio", - "description": "Produces a single MP4 file containing only AAC stereo audio encoded at 192 kbps." - }, - { - "value": "DDGoodQualityAudio", - "description": "Produces a single MP4 file containing only DD(Digital Dolby) stereo audio encoded at 192 kbps." - }, - { - "value": "ContentAwareEncodingExperimental", - "description": "Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "CopyAllBitrateNonInterleaved", - "description": "Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed." - }, - { - "value": "H264MultipleBitrate1080p", - "description": "Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p." - }, - { - "value": "H264MultipleBitrate720p", - "description": "Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p." - }, - { - "value": "H264MultipleBitrateSD", - "description": "Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p." - }, - { - "value": "H265ContentAwareEncoding", - "description": "Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved." - }, - { - "value": "H265AdaptiveStreaming", - "description": "Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best." - }, - { - "value": "H265SingleBitrate720p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "value": "H265SingleBitrate1080p", - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps." - }, - { - "description": "Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.", - "value": "H265SingleBitrate4K" - } - ], - "modelAsString": true - }, - "description": "The built-in preset to be used for encoding videos." - } - }, - "type": "object", - "required": [ - "presetName" - ], - "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." - }, - "StandardEncoderPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.StandardEncoderPreset", - "allOf": [ - { - "$ref": "#/definitions/Preset" - } - ], - "properties": { - "experimentalOptions": { - "additionalProperties": { - "type": "string" - }, - "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself", - "type": "object" - }, - "filters": { - "$ref": "#/definitions/Filters", - "description": "One or more filtering operations that are applied to the input media before encoding." - }, - "codecs": { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - }, - "x-ms-identifiers": [], - "description": "The list of codecs to be used when encoding the input video." - }, - "formats": { - "type": "array", - "items": { - "$ref": "#/definitions/Format" - }, - "x-ms-identifiers": [], - "description": "The list of outputs to be produced by the encoder." - } - }, - "type": "object", - "required": [ - "codecs", - "formats" - ], - "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." - }, - "VideoAnalyzerPreset": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoAnalyzerPreset", - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "insightsToExtract": { - "type": "string", - "enum": [ - "AudioInsightsOnly", - "VideoInsightsOnly", - "AllInsights" - ], - "x-ms-enum": { - "name": "InsightsType", - "values": [ - { - "value": "AudioInsightsOnly", - "description": "Generate audio only insights. Ignore video even if present. Fails if no audio is present." - }, - { - "value": "VideoInsightsOnly", - "description": "Generate video only insights. Ignore audio if present. Fails if no video is present." - }, - { - "value": "AllInsights", - "description": "Generate both audio and video insights. Fails if either audio or video Insights fail." - } - ], - "modelAsString": true - }, - "description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out." - } - }, - "type": "object", - "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." - }, - "TransportStreamFormat": { - "x-ms-discriminator-value": "#Microsoft.Media.TransportStreamFormat", - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": {}, - "type": "object", - "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." - }, - "VideoOverlay": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoOverlay", - "allOf": [ - { - "$ref": "#/definitions/Overlay" - } - ], - "properties": { - "position": { - "$ref": "#/definitions/Rectangle", - "description": "The location in the input video where the overlay is applied." - }, - "opacity": { - "type": "number", - "format": "double", - "description": "The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is opaque." - }, - "cropRectangle": { - "$ref": "#/definitions/Rectangle", - "description": "An optional rectangular window used to crop the overlay image or video." - } - }, - "type": "object", - "description": "Describes the properties of a video overlay." - }, - "VideoTrackDescriptor": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrackDescriptor", - "allOf": [ - { - "$ref": "#/definitions/TrackDescriptor" - } - ], - "properties": {}, - "type": "object", - "description": "A TrackSelection to select video tracks." - }, - "SelectVideoTrackByAttribute": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackByAttribute", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "attribute": { - "type": "string", - "enum": [ - "Bitrate", - "Language" - ], - "x-ms-enum": { - "name": "TrackAttribute", - "values": [ - { - "value": "Bitrate", - "description": "The bitrate of the track." - }, - { - "value": "Language", - "description": "The language of the track." - } - ], - "modelAsString": true - }, - "description": "The TrackAttribute to filter the tracks by." - }, - "filter": { - "type": "string", - "enum": [ - "All", - "Top", - "Bottom", - "ValueEquals" - ], - "x-ms-enum": { - "name": "AttributeFilter", - "values": [ - { - "value": "All", - "description": "All tracks will be included." - }, - { - "value": "Top", - "description": "The first track will be included when the attribute is sorted in descending order. Generally used to select the largest bitrate." - }, - { - "value": "Bottom", - "description": "The first track will be included when the attribute is sorted in ascending order. Generally used to select the smallest bitrate." - }, - { - "value": "ValueEquals", - "description": "Any tracks that have an attribute equal to the value given will be included." - } - ], - "modelAsString": true - }, - "description": "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks." - }, - "filterValue": { - "type": "string", - "description": "The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks." - } - }, - "type": "object", - "required": [ - "attribute", - "filter" - ], - "description": "Select video tracks from the input by specifying an attribute and an attribute filter." - }, - "SelectVideoTrackById": { - "x-ms-discriminator-value": "#Microsoft.Media.SelectVideoTrackById", - "allOf": [ - { - "$ref": "#/definitions/VideoTrackDescriptor" - } - ], - "properties": { - "trackId": { - "type": "integer", - "format": "int64", - "description": "Track identifier to select" - } - }, - "type": "object", - "required": [ - "trackId" - ], - "description": "Select video tracks from the input by specifying a track identifier." - }, - "TransformOutput": { - "properties": { - "onError": { - "type": "string", - "enum": [ - "StopProcessingJob", - "ContinueJob" - ], - "x-ms-enum": { - "name": "OnErrorType", - "values": [ - { - "value": "StopProcessingJob", - "description": "Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped." - }, - { - "value": "ContinueJob", - "description": "Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue." - } - ], - "modelAsString": true - }, - "description": "A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'." - }, - "relativePriority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal." - }, - "preset": { - "$ref": "#/definitions/Preset", - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." - } - }, - "type": "object", - "required": [ - "preset" - ], - "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." - }, - "TransformProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "An optional verbose description of the Transform." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/TransformOutput" - }, - "x-ms-identifiers": [], - "description": "An array of one or more TransformOutputs that the Transform should generate." - } - }, - "type": "object", - "required": [ - "outputs" - ], - "description": "A Transform." - }, - "Transform": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/TransformProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs." - }, - "JobInput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for inputs to a Job." - }, - "JobInputClip": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputClip", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure." - }, - "start": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media." - }, - "end": { - "$ref": "#/definitions/ClipTime", - "description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media." - }, - "label": { - "type": "string", - "description": "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 an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'." - }, - "inputDefinitions": { - "type": "array", - "items": { - "$ref": "#/definitions/InputDefinition" - }, - "x-ms-identifiers": [], - "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." - } - }, - "type": "object", - "description": "Represents input files for a Job." - }, - "ClipTime": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." - }, - "AbsoluteClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "duration", - "description": "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": "object", - "required": [ - "time" - ], - "description": "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." - }, - "UtcClipTime": { - "x-ms-discriminator-value": "#Microsoft.Media.UtcClipTime", - "allOf": [ - { - "$ref": "#/definitions/ClipTime" - } - ], - "properties": { - "time": { - "type": "string", - "format": "date-time", - "description": "The time position on the timeline of the input media based on Utc time." - } - }, - "type": "object", - "required": [ - "time" - ], - "description": "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not." - }, - "JobInputs": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputs", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInput" - }, - "x-ms-identifiers": [], - "description": "List of inputs to a Job." - } - }, - "type": "object", - "description": "Describes a list of inputs to a Job." - }, - "JobInputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the input Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset for input into a Job." - }, - "JobInputHttp": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputHttp", - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "baseUri": { - "type": "string", - "description": "Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. The query strings will not be returned in service responses to prevent sensitive data exposure." - } - }, - "type": "object", - "description": "Represents HTTPS job input." - }, - "JobOutput": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - }, - "error": { - "$ref": "#/definitions/JobError", - "description": "If the JobOutput is in the Error state, it contains the details of the error.", - "readOnly": true - }, - "presetOverride": { - "$ref": "#/definitions/Preset", - "description": "A preset used to override the preset in the corresponding transform output." - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "Describes the state of the JobOutput.", - "readOnly": true, - "x-nullable": false - }, - "progress": { - "type": "integer", - "format": "int32", - "description": "If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property.", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job Output finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Describes all the properties of a JobOutput." - }, - "JobError": { - "properties": { - "code": { - "type": "string", - "enum": [ - "ServiceError", - "ServiceTransientError", - "DownloadNotAccessible", - "DownloadTransientError", - "UploadNotAccessible", - "UploadTransientError", - "ConfigurationUnsupported", - "ContentMalformed", - "ContentUnsupported", - "IdentityUnsupported" - ], - "x-ms-enum": { - "name": "JobErrorCode", - "values": [ - { - "value": "ServiceError", - "description": "Fatal service error, please contact support." - }, - { - "value": "ServiceTransientError", - "description": "Transient error, please retry, if retry is unsuccessful, please contact support." - }, - { - "value": "DownloadNotAccessible", - "description": "While trying to download the input files, the files were not accessible, please check the availability of the source." - }, - { - "value": "DownloadTransientError", - "description": "While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source." - }, - { - "value": "UploadNotAccessible", - "description": "While trying to upload the output files, the destination was not reachable, please check the availability of the destination." - }, - { - "value": "UploadTransientError", - "description": "While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination." - }, - { - "value": "ConfigurationUnsupported", - "description": "There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration." - }, - { - "value": "ContentMalformed", - "description": "There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files." - }, - { - "value": "ContentUnsupported", - "description": "There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files." - }, - { - "description": "There was an error verifying to the account identity. Check and fix the identity configurations and retry. If unsuccessful, please contact support.", - "value": "IdentityUnsupported" - } - ], - "modelAsString": true - }, - "description": "Error code describing the error.", - "readOnly": true, - "x-nullable": false - }, - "message": { - "type": "string", - "description": "A human-readable language-dependent representation of the error.", - "readOnly": true - }, - "category": { - "type": "string", - "enum": [ - "Service", - "Download", - "Upload", - "Configuration", - "Content", - "Account" - ], - "x-ms-enum": { - "name": "JobErrorCategory", - "values": [ - { - "value": "Service", - "description": "The error is service related." - }, - { - "value": "Download", - "description": "The error is download related." - }, - { - "value": "Upload", - "description": "The error is upload related." - }, - { - "value": "Configuration", - "description": "The error is configuration related." - }, - { - "value": "Content", - "description": "The error is related to data in the input files." - }, - { - "description": "The error is related to account information.", - "value": "Account" - } - ], - "modelAsString": true - }, - "description": "Helps with categorization of errors.", - "readOnly": true, - "x-nullable": false - }, - "retry": { - "type": "string", - "enum": [ - "DoNotRetry", - "MayRetry" - ], - "x-ms-enum": { - "name": "JobRetry", - "values": [ - { - "value": "DoNotRetry", - "description": "Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected." - }, - { - "value": "MayRetry", - "description": "Issue may be resolved after waiting for a period of time and resubmitting the same Job." - } - ], - "modelAsString": true - }, - "description": "Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal.", - "readOnly": true, - "x-nullable": false - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/JobErrorDetail" - }, - "x-ms-identifiers": [ - "code" - ], - "description": "An array of details about specific errors that led to this reported error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobOutputAsset": { - "x-ms-discriminator-value": "#Microsoft.Media.JobOutputAsset", - "allOf": [ - { - "$ref": "#/definitions/JobOutput" - } - ], - "properties": { - "assetName": { - "type": "string", - "description": "The name of the output Asset." - } - }, - "type": "object", - "required": [ - "assetName" - ], - "description": "Represents an Asset used as a JobOutput." - }, - "JobErrorDetail": { - "properties": { - "code": { - "type": "string", - "description": "Code describing the error detail.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error.", - "readOnly": true - } - }, - "type": "object", - "description": "Details of JobOutput errors." - }, - "JobProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "state": { - "type": "string", - "enum": [ - "Canceled", - "Canceling", - "Error", - "Finished", - "Processing", - "Queued", - "Scheduled" - ], - "x-ms-enum": { - "name": "JobState", - "values": [ - { - "value": "Canceled", - "description": "The job was canceled. This is a final state for the job." - }, - { - "value": "Canceling", - "description": "The job is in the process of being canceled. This is a transient state for the job." - }, - { - "value": "Error", - "description": "The job has encountered an error. This is a final state for the job." - }, - { - "value": "Finished", - "description": "The job is finished. This is a final state for the job." - }, - { - "value": "Processing", - "description": "The job is processing. This is a transient state for the job." - }, - { - "value": "Queued", - "description": "The job is in a queued state, waiting for resources to become available. This is a transient state." - }, - { - "value": "Scheduled", - "description": "The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states." - } - ], - "modelAsString": true - }, - "description": "The current state of the job.", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Optional customer supplied description of the Job." - }, - "input": { - "$ref": "#/definitions/JobInput", - "description": "The inputs for the Job." - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.", - "readOnly": true, - "x-nullable": false - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobOutput" - }, - "x-ms-identifiers": [], - "description": "The outputs for the Job." - }, - "priority": { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ], - "x-ms-enum": { - "name": "Priority", - "values": [ - { - "value": "Low", - "description": "Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs." - }, - { - "value": "Normal", - "description": "Used for TransformOutputs that can be generated at Normal priority." - }, - { - "value": "High", - "description": "Used for TransformOutputs that should take precedence over others." - } - ], - "modelAsString": true - }, - "description": "Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal." - }, - "correlationData": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job began processing.", - "readOnly": true, - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The UTC date and time at which this Job finished processing.", - "readOnly": true, - "x-nullable": true - } - }, - "type": "object", - "required": [ - "input", - "outputs" - ], - "description": "Properties of the Job." - }, - "JobInputSequence": { - "x-ms-discriminator-value": "#Microsoft.Media.JobInputSequence", - "allOf": [ - { - "$ref": "#/definitions/JobInput" - } - ], - "properties": { - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/JobInputClip" - }, - "x-ms-identifiers": [], - "description": "JobInputs that make up the timeline." - } - }, - "type": "object", - "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." - }, - "Job": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid." - }, - "PresetConfigurations": { - "description": "An object of optional configuration settings for encoder.", - "properties": { - "complexity": { - "description": "Allows you to configure the encoder settings to control the balance between speed and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency.", - "enum": [ - "Speed", - "Balanced", - "Quality" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Complexity", - "values": [ - { - "description": "Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time.", - "value": "Speed" - }, - { - "description": "Configures the encoder to use settings that achieve a balance between speed and quality.", - "value": "Balanced" - }, - { - "description": "Configures the encoder to use settings optimized to produce higher quality output at the expense of slower overall encode time.", - "value": "Quality" - } - ] - } - }, - "interleaveOutput": { - "description": "Sets the interleave mode of the output to control how audio and video are stored in the container format. Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate MP4 files.", - "enum": [ - "NonInterleavedOutput", - "InterleavedOutput" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "InterleaveOutput", - "values": [ - { - "description": "The output is video-only or audio-only.", - "value": "NonInterleavedOutput" - }, - { - "description": "The output includes both audio and video.", - "value": "InterleavedOutput" - } - ] - } - }, - "keyFrameIntervalInSeconds": { - "description": "The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some players.", - "format": "float", - "type": "number" - }, - "maxBitrateBps": { - "description": "The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as 6000000 to avoid producing very high bitrate outputs for contents with high complexity.", - "format": "int32", - "type": "integer" - }, - "maxHeight": { - "description": "The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P even if the input is 4K.", - "format": "int32", - "type": "integer" - }, - "maxLayers": { - "description": "The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are produced to control the overall cost of the encoding job.", - "format": "int32", - "type": "integer" - }, - "minBitrateBps": { - "description": "The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as 200000 to have a bottom layer that covers users with low network bandwidth.", - "format": "int32", - "type": "integer" - }, - "minHeight": { - "description": "The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller resolutions like 180P.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "TransformCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Transform" - }, - "description": "A collection of Transform 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 Transform items." - }, - "JobCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Job" - }, - "description": "A collection of Job 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 Job items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms": { - "get": { - "summary": "List Transforms", - "description": "Lists the Transforms in the account.", - "operationId": "Transforms_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransformCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Transform", - "x-ms-examples": { - "Lists the Transforms": { - "$ref": "examples/transforms-list-all.json" - }, - "Lists the Transforms filter by name": { - "$ref": "examples/transforms-list-all-filter-by-name.json" - }, - "Lists the Transforms filter by created": { - "$ref": "examples/transforms-list-all-filter-by-created.json" - }, - "Lists the Transforms filter by lastmodified": { - "$ref": "examples/transforms-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}": { - "get": { - "summary": "Get Transform", - "description": "Gets a Transform.", - "operationId": "Transforms_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Transform by name": { - "$ref": "examples/transforms-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or Update Transform", - "description": "Creates or updates a new Transform.", - "operationId": "Transforms_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create or update a Transform": { - "$ref": "examples/transforms-create.json" - } - } - }, - "delete": { - "summary": "Delete Transform", - "description": "Deletes a Transform.", - "operationId": "Transforms_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Transform": { - "$ref": "examples/transforms-delete.json" - } - } - }, - "patch": { - "summary": "Update Transform", - "description": "Updates a Transform.", - "operationId": "Transforms_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Transform" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Transform" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Transform.": { - "$ref": "examples/transforms-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs": { - "get": { - "summary": "List Jobs", - "description": "Lists all of the Jobs for the Transform.", - "operationId": "Jobs_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/JobCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Job", - "x-ms-examples": { - "Lists all of the Jobs for the Transform.": { - "$ref": "examples/jobs-list-all.json" - }, - "Lists Jobs for the Transform filter by name.": { - "$ref": "examples/jobs-list-all-filter-by-name.json" - }, - "Lists Jobs for the Transform filter by state equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-eq.json" - }, - "Lists Jobs for the Transform filter by state not equal.": { - "$ref": "examples/jobs-list-all-filter-by-state-ne.json" - }, - "Lists Jobs for the Transform filter by name and state.": { - "$ref": "examples/jobs-list-all-filter-by-name-and-state.json" - }, - "Lists Jobs for the Transform filter by created.": { - "$ref": "examples/jobs-list-all-filter-by-created.json" - }, - "Lists Jobs for the Transform filter by lastmodified.": { - "$ref": "examples/jobs-list-all-filter-by-lastmodified.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}": { - "get": { - "summary": "Get Job", - "description": "Gets a Job.", - "operationId": "Jobs_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Job by name": { - "$ref": "examples/jobs-get-by-name.json" - } - } - }, - "put": { - "summary": "Create Job", - "description": "Creates a Job.", - "operationId": "Jobs_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create a Job": { - "$ref": "examples/jobs-create.json" - } - } - }, - "delete": { - "summary": "Delete Job", - "description": "Deletes a Job.", - "operationId": "Jobs_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Job": { - "$ref": "examples/jobs-delete.json" - } - } - }, - "patch": { - "summary": "Update Job", - "description": "Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.", - "operationId": "Jobs_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Job" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Job" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Job": { - "$ref": "examples/jobs-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob": { - "post": { - "summary": "Cancel Job", - "description": "Cancel a Job.", - "operationId": "Jobs_CancelJob", - "responses": { - "200": { - "description": "OK" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "transformName", - "in": "path", - "required": true, - "type": "string", - "description": "The Transform name." - }, - { - "name": "jobName", - "in": "path", - "required": true, - "type": "string", - "description": "The Job name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Cancel a Job": { - "$ref": "examples/jobs-cancel.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json deleted file mode 100644 index fa28de77f4e1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json deleted file mode 100644 index d82a00587ffa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2022-10-17T23:14:33.6140749Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - }, - "lastModified": "2022-10-17T23:14:33.6140749Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "BuiltInStandardEncoderPreset_0", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Normal", - "correlationData": { - "key1": "value1", - "Key 2": "Value 2" - } - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:33.6140749Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:33.6140749Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json deleted file mode 100644 index 054bfc5f85ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "jobToDelete" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json deleted file mode 100644 index 39f1210c3461..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1" - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json deleted file mode 100644 index b3ac66a65f1a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.2334355Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.2334355Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.2334355Z", - "endTime": "2022-10-17T23:14:33.2334355Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.2334355Z", - "endTime": "2022-10-17T23:14:33.2334355Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json deleted file mode 100644 index 2b57cc69eeb4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le 2021-06-01T00:00:20.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:20Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:20Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.3623605Z", - "endTime": "2022-10-17T23:14:33.3623605Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.3623605Z", - "endTime": "2022-10-17T23:14:33.3623605Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:20Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:20Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:10Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.3623605Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.3623605Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json deleted file mode 100644 index 84d35182632a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.1104174Z", - "endTime": "2022-10-17T23:14:33.1104174Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.1104174Z", - "endTime": "2022-10-17T23:14:33.1104174Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json deleted file mode 100644 index 9a823d140c53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "name eq 'job1' or name eq 'job2'", - "$orderby": "name" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:32.6894373Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:32.6894373Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json deleted file mode 100644 index 19da7a6d2c53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state eq Microsoft.Media.JobState'Processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:32.8284289Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:32.8284289Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:32.8284289Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:32.8284289Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json deleted file mode 100644 index 3368a3a3bedc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "$filter": "properties/state ne Microsoft.Media.JobState'processing'" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job4", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job4", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job4-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:33.0097637Z", - "endTime": "2022-10-17T23:14:33.0097637Z", - "assetName": "job4-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:33.0097637Z", - "endTime": "2022-10-17T23:14:33.0097637Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json deleted file mode 100644 index aca208d87daa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Processing", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job2-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Processing", - "progress": 50, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:32.2462651Z", - "assetName": "job2-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:32.2462651Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - }, - { - "name": "job3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Finished", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job3-InputAsset" - } - ] - }, - "lastModified": "2021-06-01T00:00:00Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Finished", - "progress": 100, - "label": "example-custom-label", - "startTime": "2022-10-17T23:04:32.2462651Z", - "endTime": "2022-10-17T23:14:32.2462651Z", - "assetName": "job3-OutputAsset" - } - ], - "priority": "Low", - "correlationData": {}, - "startTime": "2022-10-17T23:04:32.2462651Z", - "endTime": "2022-10-17T23:14:32.2462651Z" - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:00Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json deleted file mode 100644 index cf2622edbc74..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "exampleTransform", - "jobName": "job1", - "parameters": { - "properties": { - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "assetName": "job1-InputAsset" - }, - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High" - } - } - }, - "responses": { - "200": { - "body": { - "name": "job1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1", - "type": "Microsoft.Media/mediaservices/transforms/jobs", - "properties": { - "created": "2021-06-01T00:00:00Z", - "state": "Queued", - "description": "Example job to illustrate update.", - "input": { - "@odata.type": "#Microsoft.Media.JobInputs", - "inputs": [ - { - "@odata.type": "#Microsoft.Media.JobInputAsset", - "files": [], - "inputDefinitions": [], - "assetName": "job1-InputAsset" - } - ] - }, - "lastModified": "2022-10-17T23:14:33.9584586Z", - "outputs": [ - { - "@odata.type": "#Microsoft.Media.JobOutputAsset", - "state": "Queued", - "progress": 0, - "label": "example-custom-label", - "assetName": "job1-OutputAsset" - } - ], - "priority": "High", - "correlationData": {} - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:00Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:33.9584586Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json deleted file mode 100644 index 87b59e230b82..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "createdTransform", - "parameters": { - "properties": { - "description": "Example Transform to illustrate create and update.", - "outputs": [ - { - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:31.7664818Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2022-10-17T23:14:31.7664818Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:31.7664818Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:31.7664818Z" - } - } - }, - "200": { - "body": { - "name": "createdTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:31.7664818Z", - "description": "Example Transform to illustrate create and update.", - "lastModified": "2022-10-17T23:14:31.7664818Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:31.7664818Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:31.7664818Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json deleted file mode 100644 index 044b96d63b69..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json deleted file mode 100644 index 9062be5b45ce..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "sampleTransform" - }, - "responses": { - "200": { - "body": { - "name": "sampleTransform", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:31.6281097Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:31.6281097Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate1080p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:31.6281097Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:31.6281097Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json deleted file mode 100644 index 68265005eaa3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json deleted file mode 100644 index efe4f2c866c7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le 2021-06-01T00:00:10.0000000Z", - "$orderby": "properties/lastmodified desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2021-06-01T00:00:10Z", - "description": "A sample Transform using the Video Analyzer.", - "lastModified": "2021-06-01T00:00:10Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2021-06-01T00:00:10Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-06-01T00:00:10Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json deleted file mode 100644 index 31cfb10d6a5d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "$filter": "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", - "$orderby": "name desc" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:31.2387023Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2022-10-17T23:14:31.2387023Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:31.2387023Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:31.2387023Z" - } - }, - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:31.2387023Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:31.2387023Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:31.2387023Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:31.2387023Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json deleted file mode 100644 index 3a3a8659b70b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sampleEncode", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:30.2486761Z", - "description": "A sample Transform using the Standard Encoder with a built in preset.", - "lastModified": "2022-10-17T23:14:30.2486761Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:30.2486761Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:30.2486761Z" - } - }, - { - "name": "sampleEncodeAndVideoIndex", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:30.4774769Z", - "description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.", - "lastModified": "2022-10-17T23:14:30.4774769Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "AdaptiveStreaming" - } - }, - { - "onError": "StopProcessingJob", - "relativePriority": "Normal", - "preset": { - "@odata.type": "#Microsoft.Media.VideoAnalyzerPreset", - "mode": "Standard", - "insightsToExtract": "AllInsights" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:30.4774769Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:30.4774769Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json deleted file mode 100644 index 7ec7d1921bdb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "api-version": "2022-07-01", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosoresources", - "accountName": "contosomedia", - "transformName": "transformToUpdate", - "parameters": { - "properties": { - "description": "Example transform to illustrate update.", - "outputs": [ - { - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "transformToUpdate", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/transformToUpdate", - "type": "Microsoft.Media/mediaservices/transforms", - "properties": { - "created": "2022-10-17T23:14:32.1435128Z", - "description": "Example transform to illustrate update.", - "lastModified": "2022-10-17T23:14:32.1455494Z", - "outputs": [ - { - "onError": "StopProcessingJob", - "relativePriority": "High", - "preset": { - "@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset", - "presetName": "H264MultipleBitrate720p" - } - } - ] - }, - "systemData": { - "createdBy": "contoso@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-17T23:14:32.1435128Z", - "lastModifiedBy": "contoso@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-17T23:14:32.1455494Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/scenarios/EncodingTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/scenarios/EncodingTests.yaml deleted file mode 100644 index 7ae0ab6a10e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/scenarios/EncodingTests.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - assetName: - type: string - prefix: assetnam - transformName: - type: string - prefix: transfor - jobName: - type: string - prefix: jobname - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" - - step: CreateAccount - operationId: Mediaservices_CreateOrUpdate - exampleFile: ../../../../Accounts/stable/2021-11-01/examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - -scenarios: - - scenario: EncodingTests - steps: - - operationId: Transforms_CreateOrUpdate - exampleFile: ../examples/transforms-create.json - - operationId: Transforms_List - exampleFile: ../examples/transforms-list-all.json - - operationId: Transforms_Get - exampleFile: ../examples/transforms-get-by-name.json - - operationId: Transforms_Update - exampleFile: ../examples/transforms-update.json - - operationId: Assets_CreateOrUpdate - exampleFile: ../../../../Metadata/stable/2022-08-01/examples/assets-create.json - variables: - assetName: $(jobName)-InputAsset - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: Assets_CreateOrUpdate - exampleFile: ../../../../Metadata/stable/2022-08-01/examples/assets-create.json - variables: - assetName: $(jobName)-OutputAsset - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: Jobs_Create - exampleFile: ../examples/jobs-create.json - - operationId: Jobs_List - exampleFile: ../examples/jobs-list-all.json - - operationId: Jobs_Get - exampleFile: ../examples/jobs-get-by-name.json - - operationId: Jobs_Update - exampleFile: ../examples/jobs-update.json - - operationId: Jobs_CancelJob - exampleFile: ../examples/jobs-cancel.json - # disabling delete job test as it might fail based on its state based on above steps, it's possible that the job is still in scheduling or cancelling state. - # this might conflict with the next steps of the test. - # example : delete might fails, as the job might go in to canceling state and stay in that state for a while. - # - operationId: Jobs_Delete - # exampleFile: ../examples/jobs-delete.json - - operationId: Transforms_Delete - exampleFile: ../examples/transforms-delete.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/Assets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/Assets.json deleted file mode 100644 index 0466b0e0007e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/Assets.json +++ /dev/null @@ -1,608 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-03-30-preview" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsExtensible": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetStorageEncryptionKey": { - "properties": { - "storageEncryptionKey": { - "type": "string", - "description": "The Asset storage encryption key." - } - }, - "type": "object", - "description": "The Asset Storage encryption key." - }, - "Asset": { - "description": "An Asset.", - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsExtensible": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetStorageEncryptionKey" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/ContentKeyPolicies.json deleted file mode 100644 index 08d11b8a3e41..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/ContentKeyPolicies.json +++ /dev/null @@ -1,1132 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-03-30-preview" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID." - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsExtensible": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsExtensible": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsExtensible": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key" - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent" - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus" - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsExtensible": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay ASk." - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsExtensible": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 627244d4772e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1261 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-03-30-preview" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsExtensible": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsExtensible": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "Fairplay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify drm configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify drm configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable Dash protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable Hls protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "LicenseAcquisitionUrlTemplate is used to point to user specified service to delivery content keys" - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configuration of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorUserDefinedContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "label": { - "type": "string", - "description": "The Content Key description" - }, - "value": { - "type": "string", - "description": "The Content Key secret" - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Describes the properties of a user-defined content key in the Streaming Locator" - }, - "StreamingLocatorContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsExtensible": true - }, - "description": "Encryption type of Content Key" - }, - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key" - } - }, - "type": "object", - "required": [ - "type", - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsExtensible": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsExtensible": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Locator", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "StartTime of Streaming Locator" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "EndTime of Streaming Locator" - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of Streaming Locator" - }, - "streamingPolicyName": { - "type": "string", - "description": "Streaming policy name used by this streaming locator. Either specify the name of streaming policy you created or use one of the predefined streaming polices. The predefined streaming policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_SecureStreaming' and 'Predefined_SecureStreamingWithFairPlay'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKeyPolicy used by this Streaming Locator" - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorUserDefinedContentKey" - }, - "description": "ContentKeys used by this Streaming Locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Class to specify properties of Streaming Locator" - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-create.json deleted file mode 100644 index cfdbf7c19b37..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-create.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "5dfc98fa-24e4-48b6-a166-a3ff29e5987b", - "created": "2018-04-20T13:44:29.03Z", - "lastModified": "2018-04-20T13:44:29.03Z", - "alternateId": null, - "description": "A documentary showing the ascent of Mount Logan", - "container": null, - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "5dfc98fa-24e4-48b6-a166-a3ff29e5987b", - "created": "2018-04-20T13:44:29.03Z", - "lastModified": "2018-04-20T13:44:29.083Z", - "alternateId": null, - "description": "A documentary showing the ascent of Mount Logan", - "container": null, - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-delete.json deleted file mode 100644 index 6f4be3e65868..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-by-name.json deleted file mode 100644 index 23a4660c94c3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json deleted file mode 100644 index ef85de92474c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "storageEncryptionKey": null - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-all.json deleted file mode 100644 index 51c49a391036..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-all.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-by-date.json deleted file mode 100644 index a6d14025ce32..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-by-date.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-in-date-range.json deleted file mode 100644 index 1e5206367b70..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-sas-urls.json deleted file mode 100644 index c7fafa21dbb4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-03-30-preview", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-update.json deleted file mode 100644 index b3546014b743..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/assets-update.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-04-20T13:44:29.27Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index be4d3ada5988..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "720ef07f-a2bd-4d02-89ca-e31177e9517e", - "created": "2018-03-07T18:49:21.16Z", - "lastModified": "2018-03-07T18:49:21.16Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "3f114e9c-4b81-48ac-a7c4-79bb2bc58224", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "7fc39d0a-1a75-4109-acf8-3fa6a6cdb041", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "720ef07f-a2bd-4d02-89ca-e31177e9517e", - "created": "2018-03-07T18:49:21.16Z", - "lastModified": "2018-03-07T18:49:21.16Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "3f114e9c-4b81-48ac-a7c4-79bb2bc58224", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "7fc39d0a-1a75-4109-acf8-3fa6a6cdb041", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 4b5aba3f9ac6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "cb77b46c-f120-4e28-ae45-11be48aea02c", - "created": "2018-03-07T18:49:21.103Z", - "lastModified": "2018-03-07T18:49:21.103Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "5fa6f216-bfdb-4e3f-9ea5-d8dcc023ed7f", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "cb77b46c-f120-4e28-ae45-11be48aea02c", - "created": "2018-03-07T18:49:21.103Z", - "lastModified": "2018-03-07T18:49:21.103Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "5fa6f216-bfdb-4e3f-9ea5-d8dcc023ed7f", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index f7bc21f95e9b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "policyId": "00000000-0000-0000-0000-000000000000", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "00000000-0000-0000-0000-000000000000", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "imageConstraintForAnalogComponentVideoRestriction": true, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:20.94Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "9f60df33-124b-4590-94c8-f00d92107187", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": 2, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ], - "responseCustomData": null - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:20.94Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "9f60df33-124b-4590-94c8-f00d92107187", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": 2, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ], - "responseCustomData": null - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index e0afa11884b0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "f5f2f742-e073-4a7a-8663-09ffdad9d2c0", - "created": "2018-03-07T18:49:21.007Z", - "lastModified": "2018-03-07T18:49:21.007Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "56af71e4-6e97-4588-a162-bad1f5b03074", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "f5f2f742-e073-4a7a-8663-09ffdad9d2c0", - "created": "2018-03-07T18:49:21.007Z", - "lastModified": "2018-03-07T18:49:21.007Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "56af71e4-6e97-4588-a162-bad1f5b03074", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-delete.json deleted file mode 100644 index 5cd1a9391337..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json deleted file mode 100644 index d22bcc073e01..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 52d8768ccbc9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-all.json deleted file mode 100644 index 0a7167f59ed5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 5977b31209da..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 7ada7b7f9945..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-update.json deleted file mode 100644 index e0e1d710967b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:21.33Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "50159d89-f0ce-4ec2-80e5-86ee54dba014", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json deleted file mode 100644 index e8a2a73441cd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.3643095Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "fb694b0b-8ce5-45ef-a384-85766e03ef5c", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 66bd0a17fc62..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "label": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "label": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "label": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.5133542Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json deleted file mode 100644 index 1b8880b44c0a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.4378101Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "01fd96cf-95a8-4f71-a8e7-87d184d11902", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-delete.json deleted file mode 100644 index 9ef01ec206d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json deleted file mode 100644 index e276c06f488a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.2003058Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "2a7bd2f4-6675-45fd-a94a-4b7cec995591", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index ae5038f19142..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "label": "aesDefaultKey", - "type": "EnvelopeEncryption", - "id": "88424f84-3309-430d-aab4-25be8dba8540", - "value": "0GFWlqk+7i5upxzFe/xDPA==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "label": "cencDefaultKey", - "type": "CommonEncryptionCenc", - "id": "82572a27-e4c3-4cd9-be77-f64821fcd4e7", - "value": "5NRozVA5Egz0zrI7PsU2Tg==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "label": "cbcsDefaultKey", - "type": "CommonEncryptionCbcs", - "id": "baea7a00-ab4e-4dfa-afb7-1c72b39368d9", - "value": "da2Q113M/HCI5pOKAe1XOg==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index afddf2b64604..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest1.ism/manifest", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest2.ism/manifest", - "/4388089d-846d-4eed-83e3-9a227cd44c33/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/4388089d-846d-4eed-83e3-9a227cd44c33/textTrack.vtt", - "/4388089d-846d-4eed-83e3-9a227cd44c33/video1.mp4", - "/4388089d-846d-4eed-83e3-9a227cd44c33/video2.mp4", - "/4388089d-846d-4eed-83e3-9a227cd44c33/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 9ff02d37fb91..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(encryption=cbc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(encryption=cenc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(encryption=cenc)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/3b077902-e89d-48bc-b8e5-61e9b3c0f7e1/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list.json deleted file mode 100644 index d2d88fd3a56e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-locators-list.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.1523049Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "afdab5d8-1119-40ce-a952-c6872f1e9825", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - }, - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-03-07T18:49:22.1333042Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "c130eb5b-9034-4990-ba4d-1cdba4c14d57", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json deleted file mode 100644 index 00d0aaa62e7f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.8092978Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index ca94fbcc66bd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.9843003Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index 37b9da320afc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.922799Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "envelopeEncryption": null, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": null, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 3f34dfb69945..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.8642989Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index d38f5725f9e5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:22.0443025Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-delete.json deleted file mode 100644 index 9082340db923..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-list.json deleted file mode 100644 index 5b29cbb299a5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policies-list.json +++ /dev/null @@ -1,234 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.5362931Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.5342919Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "envelopeEncryption": null, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": null, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.531793Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.5302928Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - }, - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.5282927Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json deleted file mode 100644 index da8e0b6575f1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-03-30-preview/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.6217953Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/Assets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/Assets.json deleted file mode 100644 index faf1c9902752..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/Assets.json +++ /dev/null @@ -1,644 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-06-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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsExtensible": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetStorageEncryptionKey": { - "properties": { - "storageEncryptionKey": { - "type": "string", - "description": "The Asset storage encryption key." - } - }, - "type": "object", - "description": "The Asset Storage encryption key." - }, - "Asset": { - "description": "An Asset.", - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object" - }, - "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." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsExtensible": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_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": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetStorageEncryptionKey" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/ContentKeyPolicies.json deleted file mode 100644 index f9a2d3e6867d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/ContentKeyPolicies.json +++ /dev/null @@ -1,1168 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-06-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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID." - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsExtensible": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsExtensible": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsExtensible": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key" - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent" - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus" - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsExtensible": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay ASk." - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsExtensible": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "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." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_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": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 386f5f6ac076..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1281 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-06-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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsExtensible": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsExtensible": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "The template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "KeyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys" - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsExtensible": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "label": { - "type": "string", - "description": "Label of Content Key" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key" - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsExtensible": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsExtensible": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Locator", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "StartTime of Streaming Locator" - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "EndTime of Streaming Locator" - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of Streaming Locator" - }, - "streamingPolicyName": { - "type": "string", - "description": "Streaming policy name used by this streaming locator. Either specify the name of streaming policy you created or use one of the predefined streaming polices. The predefined streaming policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_SecureStreaming' and 'Predefined_SecureStreamingWithFairPlay'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKeyPolicy used by this Streaming Locator" - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by this Streaming Locator" - }, - "alternativeMediaId": { - "type": "string", - "description": "An Alternative Media Identifier associated with the StreamingLocator. This identifier can be used to distinguish different StreamingLocators for the same Asset for authorization purposes in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Class to specify properties of Streaming Locator" - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "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." - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_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": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_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": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-create.json deleted file mode 100644 index 1ac2bb045cd9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-create.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "6b4ec0a2-546f-4cc2-a000-6a46f9aec67f", - "created": "2018-05-31T21:08:47.903Z", - "lastModified": "2018-05-31T21:08:47.903Z", - "alternateId": null, - "description": "A documentary showing the ascent of Mount Logan", - "container": null, - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "6b4ec0a2-546f-4cc2-a000-6a46f9aec67f", - "created": "2018-05-31T21:08:47.903Z", - "lastModified": "2018-05-31T21:08:47.957Z", - "alternateId": null, - "description": "A documentary showing the ascent of Mount Logan", - "container": null, - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-delete.json deleted file mode 100644 index cf58e37bd9cc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-by-name.json deleted file mode 100644 index 1e951cad5ef9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json deleted file mode 100644 index 3f9457b8de36..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "storageEncryptionKey": null - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-all.json deleted file mode 100644 index 992f1cf1c222..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-all.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-by-date.json deleted file mode 100644 index c92a141c786d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-by-date.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-in-date-range.json deleted file mode 100644 index 5eda82aec2b3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-sas-urls.json deleted file mode 100644 index f8b262a1c7bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-06-01-preview", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-update.json deleted file mode 100644 index 43204ab84872..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/assets-update.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-05-31T21:08:48.143Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": null, - "storageAccountName": null, - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 529fe3b583fe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "720ef07f-a2bd-4d02-89ca-e31177e9517e", - "created": "2018-03-07T18:49:21.16Z", - "lastModified": "2018-03-07T18:49:21.16Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "3f114e9c-4b81-48ac-a7c4-79bb2bc58224", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "7fc39d0a-1a75-4109-acf8-3fa6a6cdb041", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "720ef07f-a2bd-4d02-89ca-e31177e9517e", - "created": "2018-03-07T18:49:21.16Z", - "lastModified": "2018-03-07T18:49:21.16Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "3f114e9c-4b81-48ac-a7c4-79bb2bc58224", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "7fc39d0a-1a75-4109-acf8-3fa6a6cdb041", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 82c9ea28c525..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "cb77b46c-f120-4e28-ae45-11be48aea02c", - "created": "2018-03-07T18:49:21.103Z", - "lastModified": "2018-03-07T18:49:21.103Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "5fa6f216-bfdb-4e3f-9ea5-d8dcc023ed7f", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "cb77b46c-f120-4e28-ae45-11be48aea02c", - "created": "2018-03-07T18:49:21.103Z", - "lastModified": "2018-03-07T18:49:21.103Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "5fa6f216-bfdb-4e3f-9ea5-d8dcc023ed7f", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 244ebd5a0718..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "policyId": "00000000-0000-0000-0000-000000000000", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "00000000-0000-0000-0000-000000000000", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "imageConstraintForAnalogComponentVideoRestriction": true, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:20.94Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "9f60df33-124b-4590-94c8-f00d92107187", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": 2, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ], - "responseCustomData": null - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:20.94Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "9f60df33-124b-4590-94c8-f00d92107187", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": 2, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ], - "responseCustomData": null - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index f27d4a2e2c2b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "f5f2f742-e073-4a7a-8663-09ffdad9d2c0", - "created": "2018-03-07T18:49:21.007Z", - "lastModified": "2018-03-07T18:49:21.007Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "56af71e4-6e97-4588-a162-bad1f5b03074", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "f5f2f742-e073-4a7a-8663-09ffdad9d2c0", - "created": "2018-03-07T18:49:21.007Z", - "lastModified": "2018-03-07T18:49:21.007Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "56af71e4-6e97-4588-a162-bad1f5b03074", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-delete.json deleted file mode 100644 index 25ee061d3780..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 265a07bdb845..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 9c60480b911d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-all.json deleted file mode 100644 index 6368211a5bbf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index fc542affee4d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 17bcbe59aca4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-update.json deleted file mode 100644 index fa114e545910..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-03-07T18:49:21.33Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "50159d89-f0ce-4ec2-80e5-86ee54dba014", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json deleted file mode 100644 index 1b30017fdb61..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.3245738Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "05f25fe8-d945-46b5-927e-6d25f2ee6c44", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [], - "alternativeMediaId": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 7a698a948e2f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "label": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "label": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "label": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.4586288Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "label": "cbcsDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "label": "cencDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "label": "aesDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - } - ], - "alternativeMediaId": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json deleted file mode 100644 index 07a624a1a49d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.3885741Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "436213ed-b205-4635-9218-faae77e95802", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [ - { - "id": "453cf220-04c6-4996-9355-199630850c6c", - "type": "CommonEncryptionCbcs", - "label": "cbcsDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - }, - { - "id": "a8e02c6e-442c-47f3-bf28-ce892ecbefdb", - "type": "CommonEncryptionCenc", - "label": "cencDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - }, - { - "id": "cfff3213-8ced-443d-bf2e-888b5cf4c1d8", - "type": "EnvelopeEncryption", - "label": "aesDefaultKey", - "value": null, - "policyName": null, - "tracks": [] - } - ], - "alternativeMediaId": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-delete.json deleted file mode 100644 index 0b0b93feb238..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 297a80f7ba82..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.2245724Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "0f3ab7d6-7f68-4e19-8bfe-2a132627969a", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [], - "alternativeMediaId": null - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index f9fa9e32c525..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "b005b37f-3fbc-4c1f-87a9-36cea4098ab8", - "type": "EnvelopeEncryption", - "label": "aesDefaultKey", - "value": "4ucbVJ+zAhPqG2YEOEt7Fg==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "aa2bb110-5b5d-4cd8-a58f-d33ddd8531e5", - "type": "CommonEncryptionCenc", - "label": "cencDefaultKey", - "value": "PC9D2B6XMccrr32Cuurh4A==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "6104fdb7-03ab-4d35-bb62-2215a8ddce2d", - "type": "CommonEncryptionCbcs", - "label": "cbcsDefaultKey", - "value": "9gloyO4Wo/7TWrWeOkjKGQ==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 180a24a42e6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest1.ism/manifest", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest2.ism/manifest", - "/3e4570a3-977a-432e-87bf-57bf505e400e/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/3e4570a3-977a-432e-87bf-57bf505e400e/textTrack.vtt", - "/3e4570a3-977a-432e-87bf-57bf505e400e/video1.mp4", - "/3e4570a3-977a-432e-87bf-57bf505e400e/video2.mp4", - "/3e4570a3-977a-432e-87bf-57bf505e400e/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 4001cdfc59a8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(encryption=cbc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(encryption=cenc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(encryption=cenc)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/75177b56-66c4-4043-9ec9-37c325e5fd6c/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list.json deleted file mode 100644 index 818a66cca260..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-locators-list.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.153589Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "8f6c2c3b-1650-4771-af9f-79312e6b2ded", - "streamingPolicyName": "clearStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [], - "alternativeMediaId": null - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-05-31T21:08:50.1715732Z", - "startTime": null, - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "1b4ba7ed-c100-40aa-8722-a86839c9f887", - "streamingPolicyName": "secureStreamingPolicy", - "defaultContentKeyPolicyName": null, - "contentKeys": [], - "alternativeMediaId": null - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json deleted file mode 100644 index 6023a1a392bd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.8305711Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 07c96dca1068..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:50.0065803Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index faa38a52d4e0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.9556087Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "envelopeEncryption": null, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": null, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 0bcf3b1898a8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:21.8642989Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index 15bd4f179724..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-03-07T18:49:22.0443025Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-delete.json deleted file mode 100644 index 7208ad95601d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-list.json deleted file mode 100644 index 53b9a43c944c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policies-list.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.6326323Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.6345711Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": null - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.6395697Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - }, - "playReady": null, - "widevine": null - } - }, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.6375711Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "envelopeEncryption": null, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": null, - "noEncryption": null - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.6355747Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey", - "policyName": null - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": null - }, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": null - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2018-06-01-preview&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 497091d9dc6b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2018-06-01-preview/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-05-31T21:08:49.7205706Z", - "defaultContentKeyPolicyName": null, - "envelopeEncryption": null, - "commonEncryptionCenc": null, - "commonEncryptionCbcs": null, - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AccountFilters.json deleted file mode 100644 index 85a63d558958..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AccountFilters.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "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." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_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": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AssetsAndAssetFilters.json deleted file mode 100644 index e4177cced931..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/AssetsAndAssetFilters.json +++ /dev/null @@ -1,1273 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "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." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_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": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_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": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/ContentKeyPolicies.json deleted file mode 100644 index 53e5207574f0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/ContentKeyPolicies.json +++ /dev/null @@ -1,1168 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID." - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key" - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent" - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus" - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key." - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "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." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_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": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 94ef14ab0f68..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1289 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "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." - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_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": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_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": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-create.json deleted file mode 100644 index cde6484e334c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-delete.json deleted file mode 100644 index ad07ff6d257e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-get-by-name.json deleted file mode 100644 index 693f7cbc5eea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-list-all.json deleted file mode 100644 index 68dc6fa18168..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-update.json deleted file mode 100644 index 7701e39e4ac6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-create.json deleted file mode 100644 index 590d51470183..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-delete.json deleted file mode 100644 index 3b890a6f7ccc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-get-by-name.json deleted file mode 100644 index f341343ff1a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-list-all.json deleted file mode 100644 index fd9611d738ea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-update.json deleted file mode 100644 index 9bb9d07b5e21..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 900000000000, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-create.json deleted file mode 100644 index 431c93bdb73e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-delete.json deleted file mode 100644 index 3661cae3e441..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-by-name.json deleted file mode 100644 index cc427282d0fa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-encryption-keys.json deleted file mode 100644 index c7c3f3fa0606..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-all.json deleted file mode 100644 index 714dd42b6137..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-by-date.json deleted file mode 100644 index a2a1cba3d82f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-in-date-range.json deleted file mode 100644 index 9cc1ef62ea2a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-sas-urls.json deleted file mode 100644 index f861fd39b54b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-07-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-streaming-locators.json deleted file mode 100644 index 3646044598cc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-update.json deleted file mode 100644 index aa8743214b59..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 1106df0390d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 7395f4a1b42e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index f3a08ef8e1b0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2019-06-03T22:43:06.897Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "ae7b4a3b-b2c5-4161-9197-ba4d4239f361", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2019-06-03T22:43:06.897Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "ae7b4a3b-b2c5-4161-9197-ba4d4239f361", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 1df5682c7cef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-delete.json deleted file mode 100644 index 7447440dc857..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 250a24b9d44e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 9143019cbbd5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-all.json deleted file mode 100644 index 750d942f695b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 3964906825e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 00509549496e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-update.json deleted file mode 100644 index 6ad18004d6f4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-clear.json deleted file mode 100644 index 0fe95f1d6bd2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2019-06-06T17:28:03.7992857Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7ccb6b56-686c-4d93-a267-8117ee145878", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [], - "filters": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index d8740a7b20e7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2019-06-06T18:00:49.849356Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ], - "filters": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json deleted file mode 100644 index 3d973264ab34..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2019-06-06T17:28:03.9392829Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "1f5db621-0c21-43d7-a340-2b143d62d4e7", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "41ddc803-579c-4fe8-b298-b37be5924d9e", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "68a5fd6e-ed9e-4cdf-b276-40304299dc4a", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "bfb7cbf3-5834-4d43-a87d-f25ed1b88ed3", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ], - "filters": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-delete.json deleted file mode 100644 index 140630d47647..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-get-by-name.json deleted file mode 100644 index e5f63b5ad571..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [], - "filters": [] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index 7ef154ff54fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 811f52ff50a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 6dea46e058bd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list.json deleted file mode 100644 index 98c6f76ef174..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-clear.json deleted file mode 100644 index cb5f6ccb065c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 52fc0ae3126e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index f4b39637fd31..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index df5095174e7c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index ba379b251a62..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-delete.json deleted file mode 100644 index f7c557b72159..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-list.json deleted file mode 100644 index a9107e1e2bbd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2018-07-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policy-get-by-name.json deleted file mode 100644 index e1f4eb5d3fbb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/preview/2019-05-01-preview/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AccountFilters.json deleted file mode 100644 index aae46bf4d8a5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AccountFilters.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "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." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_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": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json deleted file mode 100644 index 1a0e93ed4e89..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,1273 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "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." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_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": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_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": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json deleted file mode 100644 index 3dc4138ec9a9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID." - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key" - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent" - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus" - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key." - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "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." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_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": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index b4fc74a59918..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1289 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2018-07-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "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." - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_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": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_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": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-create.json deleted file mode 100644 index 198bf61098d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-delete.json deleted file mode 100644 index ad07ff6d257e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index 693f7cbc5eea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-list-all.json deleted file mode 100644 index eacdfbbec53a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-update.json deleted file mode 100644 index d91cf8217184..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-create.json deleted file mode 100644 index 9784120409d5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-delete.json deleted file mode 100644 index 3b890a6f7ccc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index 8eaed610e85d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-list-all.json deleted file mode 100644 index aa9981050b68..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-update.json deleted file mode 100644 index 42832ec0e80d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854775807, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-create.json deleted file mode 100644 index 431c93bdb73e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-delete.json deleted file mode 100644 index 3661cae3e441..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-by-name.json deleted file mode 100644 index cc427282d0fa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index c7c3f3fa0606..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-all.json deleted file mode 100644 index 714dd42b6137..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-by-date.json deleted file mode 100644 index a2a1cba3d82f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-in-date-range.json deleted file mode 100644 index 9cc1ef62ea2a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-sas-urls.json deleted file mode 100644 index f861fd39b54b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-07-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index 3646044598cc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-update.json deleted file mode 100644 index aa8743214b59..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 1106df0390d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 7395f4a1b42e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 861c50f3edec..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 1df5682c7cef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-delete.json deleted file mode 100644 index 7447440dc857..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 250a24b9d44e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 9143019cbbd5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 750d942f695b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 3964906825e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 00509549496e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-update.json deleted file mode 100644 index 6ad18004d6f4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index a5c959b6a235..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index e669d0843373..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index d5fdd6b06779..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-delete.json deleted file mode 100644 index 140630d47647..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index e66ccef9dc6a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index 7ef154ff54fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 811f52ff50a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 6dea46e058bd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list.json deleted file mode 100644 index 98c6f76ef174..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index cb5f6ccb065c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 52fc0ae3126e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index f4b39637fd31..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index dae05f33ecc1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index ba379b251a62..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-delete.json deleted file mode 100644 index f7c557b72159..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2018-07-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-list.json deleted file mode 100644 index a9107e1e2bbd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2018-07-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index e1f4eb5d3fbb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2018-07-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AccountFilters.json deleted file mode 100644 index 827ec8810a94..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AccountFilters.json +++ /dev/null @@ -1,519 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AssetsAndAssetFilters.json deleted file mode 100644 index 444a37f3a1f5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,1248 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/ContentKeyPolicies.json deleted file mode 100644 index e53bbeba8c73..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1174 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index acf85d2e748f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1264 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2020-05-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-create.json deleted file mode 100644 index 4c6d70688845..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-delete.json deleted file mode 100644 index b8ce20a48042..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index 5a74560c990f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-list-all.json deleted file mode 100644 index 7dac9459b140..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-update.json deleted file mode 100644 index aec8c7c8c06a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-create.json deleted file mode 100644 index dc7fe3d144cc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-delete.json deleted file mode 100644 index da8d2fe16746..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index 2e874548f36a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-list-all.json deleted file mode 100644 index b0284501a3f1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-update.json deleted file mode 100644 index 4ce1ca0618e8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-create.json deleted file mode 100644 index b15a6d7ecff2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-delete.json deleted file mode 100644 index 0147afd32330..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-by-name.json deleted file mode 100644 index f4635b39442d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 1b0ee2f1db86..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-all.json deleted file mode 100644 index 5bba32e159de..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-by-date.json deleted file mode 100644 index fb2932e24145..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-in-date-range.json deleted file mode 100644 index 8c1e80ae23b8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-sas-urls.json deleted file mode 100644 index e3ac6b3104dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2020-05-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index 4b99b6b6aae4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-update.json deleted file mode 100644 index 2e45ce22a21c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index fb8abf5c67f6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 13eca3bac701..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index c1917240ee27..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 8c88dc47c4ad..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-delete.json deleted file mode 100644 index 33eba3a15826..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 28c9e5dc131d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 0da829c2d657..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-all.json deleted file mode 100644 index a0e49ad9839b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 6cb81fd7ad9f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 179d30addc94..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-update.json deleted file mode 100644 index 33d98dab8af3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index e5ef74a68e3b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 72f7bc7edcf2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index ac78cdfa4e47..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-delete.json deleted file mode 100644 index ae40b3c0d91e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 5cded2bd270e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index e912886dbc2b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 58c864fe4494..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index d0fb861781bf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list.json deleted file mode 100644 index e5a389fed597..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index bca0dd3c4eab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 4814bb3ca62a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index 074818a1b1fc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index d6c0cf3248b5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index cdd2235204c3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-delete.json deleted file mode 100644 index 8278daace0e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2020-05-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-list.json deleted file mode 100644 index 5feec41b392f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2020-05-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 7772551258f0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2020-05-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "404": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AccountFilters.json deleted file mode 100644 index c5fa4f7e68a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AccountFilters.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AssetsAndAssetFilters.json deleted file mode 100644 index 02c8c9876374..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,1251 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "x-ms-identifiers": [ - "assetFileId" - ], - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/ContentKeyPolicies.json deleted file mode 100644 index b1765e552219..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "x-ms-identifiers": [], - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "x-ms-identifiers": [], - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "x-ms-identifiers": [], - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "x-ms-identifiers": [ - "policyOptionId" - ], - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index fe0c05af395e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1270 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-06-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "x-ms-identifiers": [ - "label" - ], - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "x-ms-identifiers": [], - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-create.json deleted file mode 100644 index 3678d57c53a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-delete.json deleted file mode 100644 index 2708ca66dc8e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index aad8c6732ec3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-list-all.json deleted file mode 100644 index ea5d73dccb1a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-update.json deleted file mode 100644 index b372fd3dadf9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-create.json deleted file mode 100644 index 7d3f99ccd248..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-delete.json deleted file mode 100644 index 792eafa85141..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index 7899a97b6912..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-list-all.json deleted file mode 100644 index 3a9e30d6d8cf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-update.json deleted file mode 100644 index 81a892f6d12a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-create.json deleted file mode 100644 index c674417d4263..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-delete.json deleted file mode 100644 index 914fc78a525b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-by-name.json deleted file mode 100644 index 3cc61ca03437..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 47dfc952ba80..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-all.json deleted file mode 100644 index f7a9e90f6143..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-by-date.json deleted file mode 100644 index 387df1a9daea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-in-date-range.json deleted file mode 100644 index 8df197374f2a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-sas-urls.json deleted file mode 100644 index 161338c42b61..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-06-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index fb8ef0619d5b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-update.json deleted file mode 100644 index ddd6e55d9ddb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 84062f1454c9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index ea8d89f56542..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 4cad352b5e18..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 12680021b1f6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-delete.json deleted file mode 100644 index 13644726aa70..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 1b5402d59454..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index daea89237e7f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 6d87848bd9cf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 1353f23450b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 52dbd3536d06..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-update.json deleted file mode 100644 index 7a818eefc48e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index cadbcba78463..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 77bda4e12bdc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index fd0a0f7763a9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-delete.json deleted file mode 100644 index 1fc67211d889..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 2dc8382a2342..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index 99a3c2288453..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 0b2b02358c67..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 3c1904b93db1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list.json deleted file mode 100644 index 5cc65d98291c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 49387fc28ff7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index bd9dcda73761..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index 3f9674d63380..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index fcd9a75e8aff..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index 849c67927d48..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-delete.json deleted file mode 100644 index f70ab454366a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-06-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-list.json deleted file mode 100644 index 83478264e5b9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2021-06-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 43a7e555f098..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-06-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json deleted file mode 100644 index 86e6407167de..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json deleted file mode 100644 index d11e56364192..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,2023 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "x-ms-identifiers": [ - "assetFileId" - ], - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "HlsSettings": { - "properties": { - "default": { - "type": "boolean", - "description": "The default for the HLS setting." - }, - "forced": { - "type": "boolean", - "description": "The forced for the HLS setting." - }, - "characteristics": { - "type": "string", - "description": "The characteristics for the HLS setting." - } - }, - "type": "object", - "description": "The HLS setting for a text track." - }, - "TrackBase": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for concrete track types. A derived type must be used to represent the Track." - }, - "AudioTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an audio track in the asset." - }, - "VideoTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a video track in the asset." - }, - "TextTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.TextTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the text track.", - "readOnly": true - }, - "playerVisibility": { - "type": "string", - "enum": [ - "Hidden", - "Visible" - ], - "x-ms-enum": { - "name": "Visibility", - "values": [ - { - "value": "Hidden", - "description": "The track is hidden to video player." - }, - { - "value": "Visible", - "description": "The track is visible to video player." - } - ], - "modelAsString": true - }, - "description": "When PlayerVisibility is set to \"Visible\", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to \"Hidden\", the text will not be available to the client. The default value is \"Visible\"." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the text track." - } - }, - "type": "object", - "description": "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks." - }, - "AssetTrackProperties": { - "properties": { - "track": { - "$ref": "#/definitions/TrackBase", - "description": "Detailed information about a track in the asset." - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the asset track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Properties of a video, audio or text track in the asset." - }, - "AssetTrack": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetTrackProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Track resource." - }, - "AssetTrackOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of asset track operation." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - }, - "AssetTrackCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "A collection of AssetTrack items." - } - }, - "type": "object", - "description": "A collection of AssetTrack items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks": { - "get": { - "summary": "List Tracks in the Asset", - "description": "Lists the Tracks in the asset", - "operationId": "Tracks_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "Lists all Tracks": { - "$ref": "examples/asset-tracks-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}": { - "get": { - "summary": "Get a Track", - "description": "Get the details of a Track in the Asset", - "operationId": "Tracks_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Track by name": { - "$ref": "examples/asset-tracks-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Track", - "description": "Create or update a Track in the asset", - "operationId": "Tracks_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "201": { - "description": "Created", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Creates a Track": { - "$ref": "examples/asset-tracks-create.json" - } - } - }, - "delete": { - "summary": "Delete a Track", - "description": "Deletes a Track in the asset", - "operationId": "Tracks_Delete", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Track": { - "$ref": "examples/asset-tracks-delete.json" - } - } - }, - "patch": { - "summary": "Update an Track", - "description": "Updates an existing Track in the asset", - "operationId": "Tracks_Update", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Track": { - "$ref": "examples/asset-tracks-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData": { - "post": { - "summary": "Update the track data", - "description": "Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.", - "operationId": "Tracks_UpdateTrackData", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update the data for a tracks": { - "$ref": "examples/asset-tracks-update-data.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get asset track operation status.", - "operationId": "OperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/asset-tracks-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get asset track operation result.", - "operationId": "OperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get result of asynchronous operation.": { - "$ref": "examples/asset-tracks-operation-result-by-id.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json deleted file mode 100644 index c86c4bb93a78..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key." - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "x-ms-identifiers": [], - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "x-ms-identifiers": [], - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "x-ms-identifiers": [], - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "x-ms-identifiers": [ - "policyOptionId" - ], - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index a28c20e89274..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1268 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2021-11-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "x-ms-identifiers": [], - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "x-ms-identifiers": [], - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-create.json deleted file mode 100644 index 82627f3b3a3d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-delete.json deleted file mode 100644 index 71831b8e29e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index fafdbcdbd0d7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-list-all.json deleted file mode 100644 index 7f1cd088e1ed..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-update.json deleted file mode 100644 index 0dd77db1fc73..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-create.json deleted file mode 100644 index 746e7f9f96d6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-create.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text3", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new track", - "fileName": "text3.ttml", - "playerVisibility": "Visible" - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - }, - "200": { - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-delete.json deleted file mode 100644 index 21d1928098f1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2021-11-01" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-get-by-name.json deleted file mode 100644 index 3d70f779d823..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-list-all.json deleted file mode 100644 index ef4e305f35f6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-list-all.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "video", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/video", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.VideoTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "audio", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/audio", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.AudioTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text2", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text2.vtt", - "displayName": "user uploaded text track", - "languageCode": "en-us", - "playerVisibility": "Hidden", - "hlsSettings": { - "default": true, - "forced": true, - "characteristics": "public.accessibility.transcribes-spoken-dialog,public.easy-to-read" - } - }, - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-result-by-id.json deleted file mode 100644 index 74166e3368cb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-result-by-id.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationResults/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "type": "Microsoft.Media/mediaservices/assets/tracks/operationResults", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - }, - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 5f91c6009e6c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "startTime": "2021-11-01T00:00:00Z", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json deleted file mode 100644 index 227403733933..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "86835197-3b47-402e-b313-70b82eaba296", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "86835197-3b47-402e-b313-70b82eaba296", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", - "startTime": "2021-11-01T00:00:00Z", - "endTime": "2021-11-01T00:00:30Z", - "status": "Failed", - "error": { - "code": "ClientError", - "message": "Error while parsing WEBVTT file and creating CMFT header." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state.json deleted file mode 100644 index 7787f20f5282..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "startTime": "2021-11-01T00:00:00Z", - "endTime": "2021-11-01T00:00:30Z", - "status": "Succeeded" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update-data.json deleted file mode 100644 index fb7b06d50467..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update-data.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2021-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update.json deleted file mode 100644 index f309ca80a98a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/asset-tracks-update.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new name" - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "A new name", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-create.json deleted file mode 100644 index cea073746adb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-delete.json deleted file mode 100644 index d5c0fac2ef0f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index e476bb7723f6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-list-all.json deleted file mode 100644 index 031a1cc08ae4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-update.json deleted file mode 100644 index 7521925a221b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-create.json deleted file mode 100644 index 70e3f9968a72..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-delete.json deleted file mode 100644 index 3c7f183268b4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-by-name.json deleted file mode 100644 index 7b2e31a7ad43..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index a5cdcdc8b703..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-all.json deleted file mode 100644 index 24d676a1a850..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-by-date.json deleted file mode 100644 index 6ee0fdc7d5b6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-in-date-range.json deleted file mode 100644 index ed9df50ad8ac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-sas-urls.json deleted file mode 100644 index eabf4f3c664a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-11-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index a1c71b3671d3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-update.json deleted file mode 100644 index 5449669efbd6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 176cb19989ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index c084f4498063..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 353179050779..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 2c75d6701bde..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-delete.json deleted file mode 100644 index 32fc45ccd967..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 45f0e1458fa1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 5ed7af0886e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 9a6af82323c6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 45d909a231dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index e35562227877..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-update.json deleted file mode 100644 index c42f8f671ea3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index 1e53b21c26cb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 55dcc252f1f3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index 4a5ac59345cd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "streamingPolicyName": "secureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-delete.json deleted file mode 100644 index 3ed03d2d7fbc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index f1696d41a027..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index 75de7463fca8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 1d38cc3e4170..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index ee15b07c055d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list.json deleted file mode 100644 index 35aaf789cf12..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 53adcedf861a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedClearStreamingPolicy", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedClearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 84d41e126c1a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index 6338440a89f9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 3f496b4252b2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index e9c935bd8e93..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-delete.json deleted file mode 100644 index 939e5226c838..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2021-11-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-list.json deleted file mode 100644 index 6083551e2922..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2021-11-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index f0436fddc735..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2021-11-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json deleted file mode 100644 index 7e190640c434..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json deleted file mode 100644 index 454e729c41eb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,2067 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "x-ms-identifiers": [ - "assetFileId" - ], - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "HlsSettings": { - "properties": { - "default": { - "type": "boolean", - "description": "The default for the HLS setting." - }, - "forced": { - "type": "boolean", - "description": "The forced for the HLS setting." - }, - "characteristics": { - "type": "string", - "description": "The characteristics for the HLS setting." - } - }, - "type": "object", - "description": "The HLS setting for a track." - }, - "DashSettings": { - "properties": { - "role": { - "type": "string", - "description": "The role for the DASH setting." - } - }, - "type": "object", - "description": "The DASH setting for a track." - }, - "TrackBase": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for concrete track types. A derived type must be used to represent the Track." - }, - "AudioTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the audio track." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the audio track." - }, - "dashSettings": { - "$ref": "#/definitions/DashSettings", - "description": "The DASH specific setting for the audio track." - }, - "mpeg4TrackId": { - "type": "integer", - "format": "int32", - "description": "The MPEG-4 audio track ID for the audio track.", - "x-nullable": true - }, - "bitRate": { - "type": "integer", - "format": "int32", - "description": "The stream bit rate for the audio track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Represents an audio track in the asset." - }, - "VideoTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a video track in the asset." - }, - "TextTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.TextTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the text track.", - "readOnly": true - }, - "playerVisibility": { - "type": "string", - "enum": [ - "Hidden", - "Visible" - ], - "x-ms-enum": { - "name": "Visibility", - "values": [ - { - "value": "Hidden", - "description": "The track is hidden to video player." - }, - { - "value": "Visible", - "description": "The track is visible to video player." - } - ], - "modelAsString": true - }, - "description": "When PlayerVisibility is set to \"Visible\", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to \"Hidden\", the text will not be available to the client. The default value is \"Visible\"." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the text track." - } - }, - "type": "object", - "description": "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks." - }, - "AssetTrackProperties": { - "properties": { - "track": { - "$ref": "#/definitions/TrackBase", - "description": "Detailed information about a track in the asset." - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the asset track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Properties of a video, audio or text track in the asset." - }, - "AssetTrack": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetTrackProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Track resource." - }, - "AssetTrackOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of asset track operation." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - }, - "AssetTrackCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "A collection of AssetTrack items." - } - }, - "type": "object", - "description": "A collection of AssetTrack items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks": { - "get": { - "summary": "List Tracks in the Asset", - "description": "Lists the Tracks in the asset", - "operationId": "Tracks_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "Lists all Tracks": { - "$ref": "examples/asset-tracks-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}": { - "get": { - "summary": "Get a Track", - "description": "Get the details of a Track in the Asset", - "operationId": "Tracks_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Track by name": { - "$ref": "examples/asset-tracks-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Track", - "description": "Create or update a Track in the asset", - "operationId": "Tracks_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "201": { - "description": "Created", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Creates a Track": { - "$ref": "examples/asset-tracks-create.json" - } - } - }, - "delete": { - "summary": "Delete a Track", - "description": "Deletes a Track in the asset", - "operationId": "Tracks_Delete", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Track": { - "$ref": "examples/asset-tracks-delete.json" - } - } - }, - "patch": { - "summary": "Update an Track", - "description": "Updates an existing Track in the asset", - "operationId": "Tracks_Update", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Track": { - "$ref": "examples/asset-tracks-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData": { - "post": { - "summary": "Update the track data", - "description": "Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.", - "operationId": "Tracks_UpdateTrackData", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update the data for a tracks": { - "$ref": "examples/asset-tracks-update-data.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get asset track operation status.", - "operationId": "OperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/asset-tracks-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get asset track operation result.", - "operationId": "OperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get result of asynchronous operation.": { - "$ref": "examples/asset-tracks-operation-result-by-id.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json deleted file mode 100644 index b3798b9069ea..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1208 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "securityLevel": { - "type": "string", - "enum": [ - "Unknown", - "SL150", - "SL2000", - "SL3000" - ], - "x-ms-enum": { - "name": "SecurityLevel", - "values": [ - { - "value": "Unknown", - "description": "Represents a SecurityLevel that is unavailable in current API version." - }, - { - "value": "SL150", - "description": "For clients under development or test. No protection against unauthorized use." - }, - { - "value": "SL2000", - "description": "For hardened devices and applications consuming commercial content. Software or hardware protection." - }, - { - "value": "SL3000", - "description": "For hardened devices only. Hardware protection." - } - ], - "modelAsString": true - }, - "description": "The security level." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key.", - "x-nullable": true - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "x-ms-identifiers": [], - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "x-ms-identifiers": [], - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "x-ms-identifiers": [], - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "x-ms-identifiers": [ - "policyOptionId" - ], - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 6a584646c36e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1292 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2022-08-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "x-ms-identifiers": [], - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "ClearKeyEncryptionConfiguration": { - "properties": { - "customKeysAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering content keys to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token value is {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId." - } - }, - "type": "object", - "description": "Class to specify ClearKey configuration of common encryption schemes in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - }, - "clearKeyEncryptionConfiguration": { - "$ref": "#/definitions/ClearKeyEncryptionConfiguration", - "description": "Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme." - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - }, - "clearKeyEncryptionConfiguration": { - "$ref": "#/definitions/ClearKeyEncryptionConfiguration", - "description": "Optional configuration supporting ClearKey in CommonEncryptionCbcs encryption scheme." - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "x-ms-identifiers": [], - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - }, - "Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc.": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json" - }, - "Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs.": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json deleted file mode 100644 index 20353cdcbbdf..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json deleted file mode 100644 index 3f3e3acc9db1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index 4c890f9d894e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json deleted file mode 100644 index 979f0208ca21..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json deleted file mode 100644 index 79f60ff4c183..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json deleted file mode 100644 index 0533f5f1b866..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text3", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new track", - "fileName": "text3.ttml", - "playerVisibility": "Visible" - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - }, - "200": { - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json deleted file mode 100644 index 14d5bb34fe53..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json deleted file mode 100644 index 4cbab7439d9d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json deleted file mode 100644 index 48a9a0c0c105..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "video", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/video", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.VideoTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "audio", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/audio", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.AudioTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text2", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text2.vtt", - "displayName": "user uploaded text track", - "languageCode": "en-us", - "playerVisibility": "Hidden", - "hlsSettings": { - "default": true, - "forced": true, - "characteristics": "public.accessibility.transcribes-spoken-dialog,public.easy-to-read" - } - }, - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json deleted file mode 100644 index 308bd253b265..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationResults/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "type": "Microsoft.Media/mediaservices/assets/tracks/operationResults", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - }, - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 632d02e11128..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "startTime": "2022-08-01T00:00:00Z", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json deleted file mode 100644 index 5656be121e8b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "86835197-3b47-402e-b313-70b82eaba296", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "86835197-3b47-402e-b313-70b82eaba296", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", - "startTime": "2022-08-01T00:00:00Z", - "endTime": "2022-08-01T00:00:30Z", - "status": "Failed", - "error": { - "code": "ClientError", - "message": "Error while parsing WEBVTT file and creating CMFT header." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json deleted file mode 100644 index 789d2441c0e3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "startTime": "2022-08-01T00:00:00Z", - "endTime": "2022-08-01T00:00:30Z", - "status": "Succeeded" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json deleted file mode 100644 index 397c9d11baf6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json deleted file mode 100644 index e52e9f3144be..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new name" - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "A new name", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json deleted file mode 100644 index a4e9a34b6e07..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json deleted file mode 100644 index f4ec23e1af8f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index bd686cb70d3e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json deleted file mode 100644 index 865b72ea05a4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json deleted file mode 100644 index 6f3d3fa73a6a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json deleted file mode 100644 index 933f44260728..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json deleted file mode 100644 index 1e9515873e4f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json deleted file mode 100644 index ed1bf25721d4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 7d19817d9fa5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json deleted file mode 100644 index c87f27866b9a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json deleted file mode 100644 index 4a39d0386b6d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json deleted file mode 100644 index b15cdbe56847..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json deleted file mode 100644 index 612a9cedcb5d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2022-08-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index 2eb9429fe581..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json deleted file mode 100644 index 034dc7d86854..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 950b7afa3e42..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 799f76e48bb7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 2961f53f1ad0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "securityLevel": "SL150", - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload", - "securityLevel": "SL150" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload", - "securityLevel": "SL150" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 6d2f305e22ae..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json deleted file mode 100644 index 65370579022e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 0c2bc14a086c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 1a18753afd2c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 134e0b21a9a8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified", - "securityLevel": "SL2000" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index b59d778d021b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified", - "securityLevel": "SL2000" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index be401116a305..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json deleted file mode 100644 index c25c5c8325a7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index 72f011215861..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 9de70ba65a80..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index a42673c41558..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json deleted file mode 100644 index d025e9dd3b5c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 5b8353d0c99c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index d4c53c549934..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 8aa3ff281128..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 32e018f3f9e8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json deleted file mode 100644 index 87515da74c1c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 4a2a2f6f7932..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json deleted file mode 100644 index fce65944023d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 2aca586bdb00..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json deleted file mode 100644 index fddf530507dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index 89e42465adcd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 0246c56eec16..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index 7cc3fd7a6bf2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json deleted file mode 100644 index 9e1825c3484a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2022-08-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json deleted file mode 100644 index 8d48f3d2c6d2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2022-08-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 3771d6709a5b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/scenarios/MetadataTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/scenarios/MetadataTests.yaml deleted file mode 100644 index 6d5568233ac7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/scenarios/MetadataTests.yaml +++ /dev/null @@ -1,188 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - assetName: - type: string - prefix: assetnam - liveEventName: - type: string - prefix: liveeven - operationId: - type: string - prefix: operatio - transformName: - type: string - prefix: transfor - streamingEndpointName: - type: string - prefix: streamin - filterName: - type: string - prefix: filterna - trackName: - type: string - prefix: tracknam - contentKeyPolicyName: - type: string - prefix: contentk - jobName: - type: string - prefix: jobname - streamingLocatorName: - type: string - prefix: streamin - name: - type: string - prefix: name - liveOutputName: - type: string - prefix: liveoutp - locationName: - type: string - prefix: location - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" - - step: CreateAccount - operationId: Mediaservices_CreateOrUpdate - exampleFile: ../../../../Accounts/stable/2021-11-01/examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - -scenarios: - - scenario: MetadataTests - steps: - - operationId: Assets_CreateOrUpdate - exampleFile: ../examples/assets-create.json - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: Assets_List - exampleFile: ../examples/assets-list-all.json - - operationId: Assets_Get - exampleFile: >- - ../examples/assets-get-by-name.json - - operationId: Assets_Update - exampleFile: ../examples/assets-update.json - - operationId: Assets_ListContainerSas - exampleFile: >- - ../examples/assets-list-sas-urls.json - - operationId: Assets_ListStreamingLocators - exampleFile: >- - ../examples/assets-list-streaming-locators.json - # cannot test Tracks API because we need the asset be encoded(need ism file) - # - operationId: Tracks_CreateOrUpdate - # exampleFile: >- - # ../examples/asset-tracks-create.json - # - operationId: Tracks_List - # exampleFile: >- - # ../examples/asset-tracks-list-all.json - # - operationId: Tracks_Get - # exampleFile: >- - # ../examples/asset-tracks-get-by-name.json - # - operationId: Tracks_Update - # exampleFile: >- - # ../examples/asset-tracks-update.json - # - operationId: Tracks_UpdateTrackData - # exampleFile: >- - # ../examples/asset-tracks-update-data.json - - operationId: StreamingPolicies_Create - exampleFile: >- - ../examples/streaming-policies-create-clear.json - - operationId: StreamingPolicies_List - exampleFile: >- - ../examples/streaming-policies-list.json - - operationId: StreamingPolicies_Get - exampleFile: >- - ../examples/streaming-policy-get-by-name.json - - operationId: StreamingLocators_Create - exampleFile: >- - ../examples/streaming-locators-create-clear.json - requestUpdate: - - replace: /parameters/properties/assetName - value: $(assetName) - - operationId: StreamingLocators_List - exampleFile: >- - ../examples/streaming-locators-list.json - - operationId: StreamingLocators_Get - exampleFile: >- - ../examples/streaming-locators-get-by-name.json - - operationId: StreamingLocators_ListContentKeys - exampleFile: >- - ../examples/streaming-locators-list-content-keys.json - - operationId: StreamingLocators_ListPaths - exampleFile: >- - ../examples/streaming-locators-list-paths-streaming-only.json - - operationId: ContentKeyPolicies_CreateOrUpdate - exampleFile: >- - ../examples/content-key-policies-create-playready-open.json - - operationId: ContentKeyPolicies_List - exampleFile: >- - ../examples/content-key-policies-list-all.json - - operationId: ContentKeyPolicies_Get - exampleFile: >- - ../examples/content-key-policies-get-by-name.json - - operationId: ContentKeyPolicies_Update - exampleFile: >- - ../examples/content-key-policies-update.json - - operationId: ContentKeyPolicies_GetPolicyPropertiesWithSecrets - exampleFile: >- - ../examples/content-key-policies-get-with-secrets.json - - operationId: AssetFilters_CreateOrUpdate - exampleFile: >- - ../examples/assetFilters-create.json - - operationId: AssetFilters_List - exampleFile: >- - ../examples/assetFilters-list-all.json - - operationId: AssetFilters_Get - exampleFile: >- - ../examples/assetFilters-get-by-name.json - - operationId: AssetFilters_Update - exampleFile: >- - ../examples/assetFilters-update.json - - operationId: AccountFilters_CreateOrUpdate - exampleFile: >- - ../examples/accountFilters-create.json - - operationId: AccountFilters_List - exampleFile: >- - ../examples/accountFilters-list-all.json - - operationId: AccountFilters_Get - exampleFile: >- - ../examples/accountFilters-get-by-name.json - - operationId: AccountFilters_Update - exampleFile: >- - ../examples/accountFilters-update.json - - operationId: StreamingPolicies_Delete - exampleFile: >- - ../examples/streaming-policies-delete.json - - operationId: AccountFilters_Delete - exampleFile: >- - ../examples/accountFilters-delete.json - - operationId: AssetFilters_Delete - exampleFile: >- - ../examples/assetFilters-delete.json - - operationId: ContentKeyPolicies_Delete - exampleFile: >- - ../examples/content-key-policies-delete.json - - operationId: StreamingLocators_Delete - exampleFile: >- - ../examples/streaming-locators-delete.json - - operationId: Assets_Delete - exampleFile: ../examples/assets-delete.json - - operationId: Mediaservices_Delete diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AccountFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AccountFilters.json deleted file mode 100644 index ba822b87aa0d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AccountFilters.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2023-01-01" - }, - "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": { - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AccountFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Account Filter." - }, - "AccountFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "A collection of AccountFilter 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 AccountFilter items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters": { - "get": { - "summary": "List Account Filters", - "description": "List Account Filters in the Media Services account.", - "operationId": "AccountFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Account Filters": { - "$ref": "examples/accountFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/accountFilters/{filterName}": { - "get": { - "summary": "Get an Account Filter.", - "description": "Get the details of an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Account Filter by name": { - "$ref": "examples/accountFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Account Filter", - "description": "Creates or updates an Account Filter in the Media Services account.", - "operationId": "AccountFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Account Filter": { - "$ref": "examples/accountFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Account Filter.", - "description": "Deletes an Account Filter in the Media Services account.", - "operationId": "AccountFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Account Filter": { - "$ref": "examples/accountFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Account Filter", - "description": "Updates an existing Account Filter in the Media Services account.", - "operationId": "AccountFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AccountFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Account Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AccountFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Account Filter": { - "$ref": "examples/accountFilters-update.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AssetsAndAssetFilters.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AssetsAndAssetFilters.json deleted file mode 100644 index e30e1d27efa4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/AssetsAndAssetFilters.json +++ /dev/null @@ -1,2074 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2023-01-01" - }, - "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": { - "AssetProperties": { - "properties": { - "assetId": { - "type": "string", - "format": "uuid", - "description": "The Asset ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Asset.", - "readOnly": true, - "x-nullable": false - }, - "alternateId": { - "type": "string", - "description": "The alternate ID of the Asset." - }, - "description": { - "type": "string", - "description": "The Asset description." - }, - "container": { - "type": "string", - "description": "The name of the asset blob container." - }, - "storageAccountName": { - "type": "string", - "description": "The name of the storage account." - }, - "storageEncryptionFormat": { - "type": "string", - "enum": [ - "None", - "MediaStorageClientEncryption" - ], - "x-ms-enum": { - "name": "AssetStorageEncryptionFormat", - "values": [ - { - "value": "None", - "description": "The Asset does not use client-side storage encryption (this is the only allowed value for new Assets)." - }, - { - "value": "MediaStorageClientEncryption", - "description": "The Asset is encrypted with Media Services client-side encryption." - } - ], - "modelAsString": true - }, - "description": "The Asset encryption format. One of None or MediaStorageEncryption.", - "readOnly": true, - "x-nullable": false - }, - "encryptionScope": { - "type": "string", - "description": "The Asset container encryption scope in the storage account." - } - }, - "type": "object", - "description": "The Asset properties." - }, - "AssetContainerSas": { - "properties": { - "assetContainerSasUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The list of Asset container SAS URLs." - } - }, - "type": "object", - "description": "The Asset Storage container SAS URLs." - }, - "AssetFileEncryptionMetadata": { - "properties": { - "initializationVector": { - "type": "string", - "description": "The Asset File initialization vector." - }, - "assetFileName": { - "type": "string", - "description": "The Asset File name." - }, - "assetFileId": { - "type": "string", - "format": "uuid", - "description": "The Asset File Id." - } - }, - "type": "object", - "required": [ - "assetFileId" - ], - "description": "The Asset File Storage encryption metadata." - }, - "StorageEncryptedAssetDecryptionData": { - "properties": { - "key": { - "type": "string", - "format": "byte", - "description": "The Asset File storage encryption key." - }, - "assetFileEncryptionMetadata": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFileEncryptionMetadata" - }, - "x-ms-identifiers": [ - "assetFileId" - ], - "description": "Asset File encryption metadata." - } - }, - "type": "object", - "description": "Data needed to decrypt asset files encrypted with legacy storage encryption." - }, - "ListStreamingLocatorsResponse": { - "properties": { - "streamingLocators": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetStreamingLocator" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The list of Streaming Locators.", - "readOnly": true - } - }, - "type": "object", - "description": "The Streaming Locators associated with this Asset." - }, - "AssetStreamingLocator": { - "properties": { - "name": { - "type": "string", - "description": "Streaming Locator name.", - "readOnly": true - }, - "assetName": { - "type": "string", - "description": "Asset Name.", - "readOnly": true - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "StreamingLocatorId of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator.", - "readOnly": true - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator.", - "readOnly": true - } - }, - "type": "object", - "description": "Properties of the Streaming Locator." - }, - "Asset": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset." - }, - "PresentationTimeRange": { - "properties": { - "startTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute start time boundary." - }, - "endTimestamp": { - "type": "integer", - "format": "int64", - "description": "The absolute end time boundary." - }, - "presentationWindowDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end sliding window." - }, - "liveBackoffDuration": { - "type": "integer", - "format": "int64", - "description": "The relative to end right edge." - }, - "timescale": { - "type": "integer", - "format": "int64", - "description": "The time scale of time stamps." - }, - "forceEndTimestamp": { - "type": "boolean", - "description": "The indicator of forcing existing of end time stamp." - } - }, - "type": "object", - "description": "The presentation time range, this is asset related and not recommended for Account Filter." - }, - "FilterTrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "The unknown track property type." - }, - { - "value": "Type", - "description": "The type." - }, - { - "value": "Name", - "description": "The name." - }, - { - "value": "Language", - "description": "The language." - }, - { - "value": "FourCC", - "description": "The fourCC." - }, - { - "value": "Bitrate", - "description": "The bitrate." - } - ], - "modelAsString": true - }, - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track property value." - }, - "operation": { - "type": "string", - "enum": [ - "Equal", - "NotEqual" - ], - "x-ms-enum": { - "name": "FilterTrackPropertyCompareOperation", - "values": [ - { - "value": "Equal", - "description": "The equal operation." - }, - { - "value": "NotEqual", - "description": "The not equal operation." - } - ], - "modelAsString": true - }, - "description": "The track property condition operation." - } - }, - "type": "object", - "required": [ - "property", - "value", - "operation" - ], - "description": "The class to specify one track property condition." - }, - "FirstQuality": { - "properties": { - "bitrate": { - "type": "integer", - "format": "int32", - "description": "The first quality bitrate." - } - }, - "type": "object", - "required": [ - "bitrate" - ], - "description": "Filter First Quality" - }, - "FilterTrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "The track selections." - } - }, - "type": "object", - "required": [ - "trackSelections" - ], - "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." - }, - "MediaFilterProperties": { - "properties": { - "presentationTimeRange": { - "$ref": "#/definitions/PresentationTimeRange", - "description": "The presentation time range." - }, - "firstQuality": { - "$ref": "#/definitions/FirstQuality", - "description": "The first quality." - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/FilterTrackSelection" - }, - "x-ms-identifiers": [], - "description": "The tracks selection conditions." - } - }, - "type": "object", - "description": "The Media Filter properties." - }, - "AssetFilter": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/MediaFilterProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "An Asset Filter." - }, - "HlsSettings": { - "properties": { - "default": { - "type": "boolean", - "description": "The default for the HLS setting." - }, - "forced": { - "type": "boolean", - "description": "The forced for the HLS setting." - }, - "characteristics": { - "type": "string", - "description": "The characteristics for the HLS setting." - } - }, - "type": "object", - "description": "The HLS setting for a track." - }, - "DashSettings": { - "properties": { - "role": { - "type": "string", - "description": "The role for the DASH setting." - } - }, - "type": "object", - "description": "The DASH setting for a track." - }, - "TrackBase": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base type for concrete track types. A derived type must be used to represent the Track." - }, - "AudioTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.AudioTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the audio track." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the audio track." - }, - "dashSettings": { - "$ref": "#/definitions/DashSettings", - "description": "The DASH specific setting for the audio track." - }, - "mpeg4TrackId": { - "type": "integer", - "format": "int32", - "description": "The MPEG-4 audio track ID for the audio track.", - "x-nullable": true - }, - "bitRate": { - "type": "integer", - "format": "int32", - "description": "The stream bit rate for the audio track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Represents an audio track in the asset." - }, - "VideoTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.VideoTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a video track in the asset." - }, - "TextTrack": { - "x-ms-discriminator-value": "#Microsoft.Media.TextTrack", - "allOf": [ - { - "$ref": "#/definitions/TrackBase" - } - ], - "properties": { - "fileName": { - "type": "string", - "description": "The file name to the source file. This file is located in the storage container of the asset." - }, - "displayName": { - "type": "string", - "description": "The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA." - }, - "languageCode": { - "type": "string", - "description": "The RFC5646 language code for the text track.", - "readOnly": true - }, - "playerVisibility": { - "type": "string", - "enum": [ - "Hidden", - "Visible" - ], - "x-ms-enum": { - "name": "Visibility", - "values": [ - { - "value": "Hidden", - "description": "The track is hidden to video player." - }, - { - "value": "Visible", - "description": "The track is visible to video player." - } - ], - "modelAsString": true - }, - "description": "When PlayerVisibility is set to \"Visible\", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to \"Hidden\", the text will not be available to the client. The default value is \"Visible\"." - }, - "hlsSettings": { - "$ref": "#/definitions/HlsSettings", - "description": "The HLS specific setting for the text track." - } - }, - "type": "object", - "description": "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks." - }, - "AssetTrackProperties": { - "properties": { - "track": { - "$ref": "#/definitions/TrackBase", - "description": "Detailed information about a track in the asset." - }, - "provisioningState": { - "type": "string", - "enum": [ - "Failed", - "InProgress", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "values": [ - { - "value": "Failed", - "description": "Provisioning state failed." - }, - { - "value": "InProgress", - "description": "Provisioning state in progress." - }, - { - "value": "Succeeded", - "description": "Provisioning state succeeded." - } - ], - "modelAsString": true - }, - "description": "Provisioning state of the asset track.", - "readOnly": true, - "x-nullable": false - } - }, - "type": "object", - "description": "Properties of a video, audio or text track in the asset." - }, - "AssetTrack": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/AssetTrackProperties", - "description": "The resource properties.", - "x-ms-client-flatten": true - } - }, - "type": "object", - "description": "An Asset Track resource." - }, - "AssetTrackOperationStatus": { - "properties": { - "name": { - "type": "string", - "description": "Operation identifier." - }, - "id": { - "type": "string", - "description": "Operation resource ID." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Operation start time." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Operation end time." - }, - "status": { - "type": "string", - "description": "Operation status." - }, - "error": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "name", - "status" - ], - "description": "Status of asset track operation." - }, - "AssetCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Asset" - }, - "description": "A collection of Asset 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 Asset items." - }, - "ListContainerSasInput": { - "description": "The parameters to the list SAS request.", - "properties": { - "permissions": { - "description": "The permissions to set on the SAS URL.", - "type": "string", - "enum": [ - "Read", - "ReadWrite", - "ReadWriteDelete" - ], - "x-ms-enum": { - "name": "AssetContainerPermission", - "values": [ - { - "value": "Read", - "description": "The SAS URL will allow read access to the container." - }, - { - "value": "ReadWrite", - "description": "The SAS URL will allow read and write access to the container." - }, - { - "value": "ReadWriteDelete", - "description": "The SAS URL will allow read, write and delete access to the container." - } - ], - "modelAsString": true - } - }, - "expiryTime": { - "description": "The SAS URL expiration time. This must be less than 24 hours from the current time.", - "type": "string", - "format": "date-time" - } - }, - "type": "object" - }, - "AssetFilterCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "A collection of AssetFilter 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 AssetFilter items." - }, - "AssetTrackCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "A collection of AssetTrack items." - } - }, - "type": "object", - "description": "A collection of AssetTrack items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets": { - "get": { - "summary": "List Assets", - "description": "List Assets in the Media Services account with optional filtering and ordering", - "operationId": "Assets_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/Asset", - "x-ms-examples": { - "List all Assets": { - "$ref": "examples/assets-list-all.json" - }, - "List Asset ordered by date": { - "$ref": "examples/assets-list-by-date.json" - }, - "List Asset created in a date range": { - "$ref": "examples/assets-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}": { - "get": { - "summary": "Get an Asset", - "description": "Get the details of an Asset in the Media Services account", - "operationId": "Assets_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset by name": { - "$ref": "examples/assets-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset", - "description": "Creates or updates an Asset in the Media Services account", - "operationId": "Assets_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset": { - "$ref": "examples/assets-create.json" - }, - "Create an Asset with encryption scope": { - "$ref": "examples/assets-create-with-encryption-scope.json" - } - } - }, - "delete": { - "summary": "Delete an Asset.", - "description": "Deletes an Asset in the Media Services account", - "operationId": "Assets_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset": { - "$ref": "examples/assets-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset", - "description": "Updates an existing Asset in the Media Services account", - "operationId": "Assets_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Asset" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Asset" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset": { - "$ref": "examples/assets-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas": { - "post": { - "summary": "List the Asset URLs", - "description": "Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.", - "operationId": "Assets_ListContainerSas", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetContainerSas" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ListContainerSasInput" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-sas-urls.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey": { - "post": { - "summary": "Gets the Asset storage key", - "description": "Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API", - "operationId": "Assets_GetEncryptionKey", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StorageEncryptedAssetDecryptionData" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get Asset Storage Encryption Keys": { - "$ref": "examples/assets-get-encryption-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators": { - "post": { - "summary": "List Streaming Locators", - "description": "Lists Streaming Locators which are associated with this asset.", - "operationId": "Assets_ListStreamingLocators", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListStreamingLocatorsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Asset SAS URLs": { - "$ref": "examples/assets-list-streaming-locators.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters": { - "get": { - "summary": "List Asset Filters", - "description": "List Asset Filters associated with the specified Asset.", - "operationId": "AssetFilters_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilterCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all Asset Filters": { - "$ref": "examples/assetFilters-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}": { - "get": { - "summary": "Get an Asset Filter.", - "description": "Get the details of an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Asset Filter by name": { - "$ref": "examples/assetFilters-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Asset Filter", - "description": "Creates or updates an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Create an Asset Filter": { - "$ref": "examples/assetFilters-create.json" - } - } - }, - "delete": { - "summary": "Delete an Asset Filter.", - "description": "Deletes an Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete an Asset Filter": { - "$ref": "examples/assetFilters-delete.json" - } - } - }, - "patch": { - "summary": "Update an Asset Filter", - "description": "Updates an existing Asset Filter associated with the specified Asset.", - "operationId": "AssetFilters_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetFilter" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "filterName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Filter name" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetFilter" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update an Asset Filter": { - "$ref": "examples/assetFilters-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks": { - "get": { - "summary": "List Tracks in the Asset", - "description": "Lists the Tracks in the asset", - "operationId": "Tracks_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-pageable": { - "nextLinkName": null - }, - "x-ms-examples": { - "Lists all Tracks": { - "$ref": "examples/asset-tracks-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}": { - "get": { - "summary": "Get a Track", - "description": "Get the details of a Track in the Asset", - "operationId": "Tracks_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Track by name": { - "$ref": "examples/asset-tracks-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update a Track", - "description": "Create or update a Track in the asset", - "operationId": "Tracks_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "201": { - "description": "Created", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Creates a Track": { - "$ref": "examples/asset-tracks-create.json" - } - } - }, - "delete": { - "summary": "Delete a Track", - "description": "Deletes a Track in the asset", - "operationId": "Tracks_Delete", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Track": { - "$ref": "examples/asset-tracks-delete.json" - } - } - }, - "patch": { - "summary": "Update an Track", - "description": "Updates an existing Track in the asset", - "operationId": "Tracks_Update", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AssetTrack" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a Track": { - "$ref": "examples/asset-tracks-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/updateTrackData": { - "post": { - "summary": "Update the track data", - "description": "Update the track data. Call this API after any changes are made to the track data stored in the asset container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not be reflected immediately. CDN cache may also need to be purged if applicable.", - "operationId": "Tracks_UpdateTrackData", - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update the data for a tracks": { - "$ref": "examples/asset-tracks-update-data.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationStatuses/{operationId}": { - "get": { - "summary": "Get operation status.", - "description": "Get asset track operation status.", - "operationId": "OperationStatuses_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrackOperationStatus" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get status of asynchronous operation when it is completed.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state.json" - }, - "Get status of asynchronous operation when it is ongoing.": { - "$ref": "examples/asset-tracks-operation-status-by-id-non-terminal-state.json" - }, - "Get status of asynchronous operation when it is completed with error.": { - "$ref": "examples/asset-tracks-operation-status-by-id-terminal-state-failed.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}": { - "get": { - "summary": "Get operation result.", - "description": "Get asset track operation result.", - "operationId": "OperationResults_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AssetTrack" - } - }, - "202": { - "description": "Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "assetName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset name." - }, - { - "name": "trackName", - "in": "path", - "required": true, - "type": "string", - "description": "The Asset Track name." - }, - { - "name": "operationId", - "in": "path", - "required": true, - "type": "string", - "description": "Operation Id." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get result of asynchronous operation.": { - "$ref": "examples/asset-tracks-operation-result-by-id.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/ContentKeyPolicies.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/ContentKeyPolicies.json deleted file mode 100644 index 57a5de94bb5c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/ContentKeyPolicies.json +++ /dev/null @@ -1,1208 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2023-01-01" - }, - "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": { - "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { - "properties": { - "bestEffort": { - "type": "boolean", - "description": "Indicates whether this restriction is enforced on a Best Effort basis." - }, - "configurationData": { - "type": "integer", - "format": "int32", - "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." - } - }, - "type": "object", - "required": [ - "bestEffort", - "configurationData" - ], - "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." - }, - "ContentKeyPolicyPlayReadyContentKeyLocation": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for content key ID location. A derived class must be used to represent the location." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": {}, - "type": "object", - "description": "Specifies that the content key ID is in the PlayReady header." - }, - "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" - } - ], - "properties": { - "keyId": { - "type": "string", - "format": "uuid", - "description": "The content key ID.", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyId" - ], - "description": "Specifies that the content key ID is specified in the PlayReady configuration." - }, - "ContentKeyPolicyPlayReadyPlayRight": { - "properties": { - "firstPlayExpiration": { - "type": "string", - "format": "duration", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." - }, - "agcAndColorStripeRestriction": { - "type": "integer", - "format": "int32", - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." - }, - "explicitAnalogTelevisionOutputRestriction": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction", - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." - }, - "digitalVideoOnlyContentRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComponentVideoRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "imageConstraintForAnalogComputerMonitorRestriction": { - "type": "boolean", - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." - }, - "allowPassingVideoContentToUnknownOutput": { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyUnknownOutputPassingOption", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version." - }, - { - "value": "NotAllowed", - "description": "Passing the video portion of protected content to an Unknown Output is not allowed." - }, - { - "value": "Allowed", - "description": "Passing the video portion of protected content to an Unknown Output is allowed." - }, - { - "value": "AllowedWithVideoConstriction", - "description": "Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution." - } - ], - "modelAsString": true - }, - "description": "Configures Unknown output handling settings of the license." - }, - "uncompressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital video." - }, - "compressedDigitalVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital video." - }, - "analogVideoOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "compressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for compressed digital audio." - }, - "uncompressedDigitalAudioOpl": { - "type": "integer", - "format": "int32", - "description": "Specifies the output protection level for uncompressed digital audio." - } - }, - "type": "object", - "required": [ - "digitalVideoOnlyContentRestriction", - "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" - ], - "description": "Configures the Play Right in the PlayReady license." - }, - "ContentKeyPolicyTokenClaim": { - "properties": { - "claimType": { - "type": "string", - "description": "Token claim type." - }, - "claimValue": { - "type": "string", - "description": "Token claim value." - } - }, - "type": "object", - "description": "Represents a token claim." - }, - "ContentKeyPolicyPlayReadyLicense": { - "properties": { - "allowTestDevices": { - "type": "boolean", - "description": "A flag indicating whether test devices can use the license." - }, - "securityLevel": { - "type": "string", - "enum": [ - "Unknown", - "SL150", - "SL2000", - "SL3000" - ], - "x-ms-enum": { - "name": "SecurityLevel", - "values": [ - { - "value": "Unknown", - "description": "Represents a SecurityLevel that is unavailable in current API version." - }, - { - "value": "SL150", - "description": "For clients under development or test. No protection against unauthorized use." - }, - { - "value": "SL2000", - "description": "For hardened devices and applications consuming commercial content. Software or hardware protection." - }, - { - "value": "SL3000", - "description": "For hardened devices only. Hardware protection." - } - ], - "modelAsString": true - }, - "description": "The security level." - }, - "beginDate": { - "type": "string", - "format": "date-time", - "description": "The begin date of license" - }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "format": "duration", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "format": "duration", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "format": "duration", - "description": "The grace period of license." - }, - "playRight": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight", - "description": "The license PlayRight" - }, - "licenseType": { - "type": "string", - "enum": [ - "Unknown", - "NonPersistent", - "Persistent" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyLicenseType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version." - }, - { - "value": "NonPersistent", - "description": "Non persistent license." - }, - { - "value": "Persistent", - "description": "Persistent license. Allows offline playback." - } - ], - "modelAsString": true - }, - "description": "The license type." - }, - "contentKeyLocation": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation", - "description": "The content key location." - }, - "contentType": { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyPlayReadyContentType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version." - }, - { - "value": "Unspecified", - "description": "Unspecified content type." - }, - { - "value": "UltraVioletDownload", - "description": "Ultraviolet download content type." - }, - { - "value": "UltraVioletStreaming", - "description": "Ultraviolet streaming content type." - } - ], - "modelAsString": true - }, - "description": "The PlayReady content type." - } - }, - "type": "object", - "required": [ - "allowTestDevices", - "licenseType", - "contentKeyLocation", - "contentType" - ], - "description": "The PlayReady license" - }, - "ContentKeyPolicyRestriction": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." - }, - "ContentKeyPolicyOpenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyOpenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents an open restriction. License or key will be delivered on every request." - }, - "ContentKeyPolicyUnknownRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." - }, - "ContentKeyPolicyConfiguration": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." - }, - "ContentKeyPolicyRestrictionTokenKey": { - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string", - "description": "The discriminator for derived types." - } - }, - "type": "object", - "required": [ - "@odata.type" - ], - "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." - }, - "ContentKeyPolicySymmetricTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "keyValue": { - "type": "string", - "format": "byte", - "description": "The key value of the key", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "keyValue" - ], - "description": "Specifies a symmetric key for token validation." - }, - "ContentKeyPolicyRsaTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "exponent": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter exponent", - "x-nullable": true - }, - "modulus": { - "type": "string", - "format": "byte", - "description": "The RSA Parameter modulus", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "exponent", - "modulus" - ], - "description": "Specifies a RSA key for token validation" - }, - "ContentKeyPolicyX509CertificateTokenKey": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } - ], - "properties": { - "rawBody": { - "type": "string", - "format": "byte", - "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)", - "x-nullable": true - } - }, - "type": "object", - "required": [ - "rawBody" - ], - "description": "Specifies a certificate for token validation." - }, - "ContentKeyPolicyTokenRestriction": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRestriction" - } - ], - "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { - "type": "string", - "description": "The audience for the token." - }, - "primaryVerificationKey": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey", - "description": "The primary verification key.", - "x-nullable": true - }, - "alternateVerificationKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - }, - "x-ms-identifiers": [], - "description": "A list of alternative verification keys." - }, - "requiredClaims": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyTokenClaim" - }, - "x-ms-identifiers": [], - "description": "A list of required token claims." - }, - "restrictionTokenType": { - "type": "string", - "enum": [ - "Unknown", - "Swt", - "Jwt" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyRestrictionTokenType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version." - }, - { - "value": "Swt", - "description": "Simple Web Token." - }, - { - "value": "Jwt", - "description": "JSON Web Token." - } - ], - "modelAsString": true - }, - "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - } - }, - "type": "object", - "required": [ - "issuer", - "audience", - "primaryVerificationKey", - "restrictionTokenType" - ], - "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." - }, - "ContentKeyPolicyClearKeyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a configuration for non-DRM keys." - }, - "ContentKeyPolicyUnknownConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": {}, - "type": "object", - "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." - }, - "ContentKeyPolicyWidevineConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "widevineTemplate": { - "type": "string", - "description": "The Widevine template." - } - }, - "type": "object", - "required": [ - "widevineTemplate" - ], - "description": "Specifies a configuration for Widevine licenses." - }, - "ContentKeyPolicyPlayReadyConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "licenses": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" - }, - "x-ms-identifiers": [], - "description": "The PlayReady licenses." - }, - "responseCustomData": { - "type": "string", - "description": "The custom response data." - } - }, - "type": "object", - "required": [ - "licenses" - ], - "description": "Specifies a configuration for PlayReady licenses." - }, - "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { - "properties": { - "playbackDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Playback duration" - }, - "storageDurationSeconds": { - "type": "integer", - "format": "int64", - "description": "Storage duration" - } - }, - "type": "object", - "required": [ - "playbackDurationSeconds", - "storageDurationSeconds" - ] - }, - "ContentKeyPolicyFairPlayConfiguration": { - "x-ms-discriminator-value": "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration", - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyConfiguration" - } - ], - "properties": { - "ask": { - "type": "string", - "format": "byte", - "description": "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded.", - "x-nullable": true - }, - "fairPlayPfxPassword": { - "type": "string", - "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format.", - "x-nullable": true - }, - "fairPlayPfx": { - "type": "string", - "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).", - "x-nullable": true - }, - "rentalAndLeaseKeyType": { - "type": "string", - "enum": [ - "Unknown", - "Undefined", - "DualExpiry", - "PersistentUnlimited", - "PersistentLimited" - ], - "x-ms-enum": { - "name": "ContentKeyPolicyFairPlayRentalAndLeaseKeyType", - "values": [ - { - "value": "Unknown", - "description": "Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version." - }, - { - "value": "Undefined", - "description": "Key duration is not specified." - }, - { - "value": "DualExpiry", - "description": "Dual expiry for offline rental." - }, - { - "value": "PersistentUnlimited", - "description": "Content key can be persisted with an unlimited duration" - }, - { - "value": "PersistentLimited", - "description": "Content key can be persisted and the valid duration is limited by the Rental Duration value" - } - ], - "modelAsString": true - }, - "description": "The rental and lease key type." - }, - "rentalDuration": { - "type": "integer", - "format": "int64", - "description": "The rental duration. Must be greater than or equal to 0." - }, - "offlineRentalConfiguration": { - "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration", - "description": "Offline rental policy" - } - }, - "type": "object", - "required": [ - "ask", - "fairPlayPfxPassword", - "fairPlayPfx", - "rentalAndLeaseKeyType", - "rentalDuration" - ], - "description": "Specifies a configuration for FairPlay licenses." - }, - "ContentKeyPolicyOption": { - "properties": { - "policyOptionId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy Option ID.", - "readOnly": true, - "x-nullable": false - }, - "name": { - "type": "string", - "description": "The Policy Option description." - }, - "configuration": { - "$ref": "#/definitions/ContentKeyPolicyConfiguration", - "description": "The key delivery configuration." - }, - "restriction": { - "$ref": "#/definitions/ContentKeyPolicyRestriction", - "description": "The requirements that must be met to deliver keys with this configuration" - } - }, - "type": "object", - "required": [ - "configuration", - "restriction" - ], - "description": "Represents a policy option." - }, - "ContentKeyPolicyProperties": { - "properties": { - "policyId": { - "type": "string", - "format": "uuid", - "description": "The legacy Policy ID.", - "readOnly": true, - "x-nullable": false - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "lastModified": { - "type": "string", - "format": "date-time", - "description": "The last modified date of the Policy", - "readOnly": true, - "x-nullable": false - }, - "description": { - "type": "string", - "description": "A description for the Policy." - }, - "options": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyOption" - }, - "x-ms-identifiers": [ - "policyOptionId" - ], - "description": "The Key Policy options." - } - }, - "type": "object", - "required": [ - "options" - ], - "description": "The properties of the Content Key Policy." - }, - "ContentKeyPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/ContentKeyPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Content Key Policy resource." - }, - "ContentKeyPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "A collection of ContentKeyPolicy 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 ContentKeyPolicy items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies": { - "get": { - "summary": "List Content Key Policies", - "description": "Lists the Content Key Policies in the account", - "operationId": "ContentKeyPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/ContentKeyPolicy", - "x-ms-examples": { - "Lists all Content Key Policies": { - "$ref": "examples/content-key-policies-list-all.json" - }, - "Lists Content Key Policies ordered by last modified.": { - "$ref": "examples/content-key-policies-list-by-lastModified.json" - }, - "Lists Content Key Policies with created and last modified filters.": { - "$ref": "examples/content-key-policies-list-in-date-range.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}": { - "get": { - "summary": "Get a Content Key Policy", - "description": "Get the details of a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Content Key Policy by name": { - "$ref": "examples/content-key-policies-get-by-name.json" - } - } - }, - "put": { - "summary": "Create or update an Content Key Policy", - "description": "Create or update a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_CreateOrUpdate", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Content Key Policy with PlayReady option and Open Restriction": { - "$ref": "examples/content-key-policies-create-playready-open.json" - }, - "Creates a Content Key Policy with Widevine option and Token Restriction": { - "$ref": "examples/content-key-policies-create-widevine-token.json" - }, - "Creates a Content Key Policy with ClearKey option and Token Restriction": { - "$ref": "examples/content-key-policies-create-nodrm-token.json" - }, - "Creates a Content Key Policy with multiple options": { - "$ref": "examples/content-key-policies-create-multiple-options.json" - } - } - }, - "delete": { - "summary": "Delete a Content Key Policy", - "description": "Deletes a Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Key Policy": { - "$ref": "examples/content-key-policies-delete.json" - } - } - }, - "patch": { - "summary": "Update a Content Key Policy", - "description": "Updates an existing Content Key Policy in the Media Services account", - "operationId": "ContentKeyPolicies_Update", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ContentKeyPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Update a Content Key Policy": { - "$ref": "examples/content-key-policies-update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}/getPolicyPropertiesWithSecrets": { - "post": { - "summary": "Get a Content Key Policy with secrets", - "description": "Get a Content Key Policy including secret values", - "operationId": "ContentKeyPolicies_GetPolicyPropertiesWithSecrets", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ContentKeyPolicyProperties" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "contentKeyPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Content Key Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get an Content Key Policy with secrets": { - "$ref": "examples/content-key-policies-get-with-secrets.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/StreamingPoliciesAndStreamingLocators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/StreamingPoliciesAndStreamingLocators.json deleted file mode 100644 index 91486821dbed..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/StreamingPoliciesAndStreamingLocators.json +++ /dev/null @@ -1,1292 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "This Swagger was generated by the API Framework.", - "version": "2023-01-01" - }, - "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": { - "TrackPropertyCondition": { - "properties": { - "property": { - "type": "string", - "enum": [ - "Unknown", - "FourCC" - ], - "x-ms-enum": { - "name": "TrackPropertyType", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property" - }, - { - "value": "FourCC", - "description": "Track FourCC" - } - ], - "modelAsString": true - }, - "description": "Track property type" - }, - "operation": { - "type": "string", - "enum": [ - "Unknown", - "Equal" - ], - "x-ms-enum": { - "name": "TrackPropertyCompareOperation", - "values": [ - { - "value": "Unknown", - "description": "Unknown track property compare operation" - }, - { - "value": "Equal", - "description": "Equal operation" - } - ], - "modelAsString": true - }, - "description": "Track property condition operation" - }, - "value": { - "type": "string", - "description": "Track property value" - } - }, - "type": "object", - "required": [ - "property", - "operation" - ], - "description": "Class to specify one track property condition" - }, - "TrackSelection": { - "properties": { - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackPropertyCondition" - }, - "x-ms-identifiers": [], - "description": "TrackSelections is a track property condition list which can specify track(s)" - } - }, - "type": "object", - "description": "Class to select a track" - }, - "DefaultKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Default Key" - } - }, - "type": "object", - "description": "Class to specify properties of default content key for each encryption scheme" - }, - "StreamingPolicyContentKey": { - "properties": { - "label": { - "type": "string", - "description": "Label can be used to specify Content Key when creating a Streaming Locator" - }, - "policyName": { - "type": "string", - "description": "Policy used by Content Key" - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this content key" - } - }, - "type": "object", - "description": "Class to specify properties of content key" - }, - "StreamingPolicyContentKeys": { - "properties": { - "defaultKey": { - "$ref": "#/definitions/DefaultKey", - "description": "Default content key for an encryption scheme" - }, - "keyToTrackMappings": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicyContentKey" - }, - "x-ms-identifiers": [], - "description": "Representing tracks needs separate content key" - } - }, - "type": "object", - "description": "Class to specify properties of all content keys in Streaming Policy" - }, - "StreamingPolicyPlayReadyConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "playReadyCustomAttributes": { - "type": "string", - "description": "Custom attributes for PlayReady" - } - }, - "type": "object", - "description": "Class to specify configurations of PlayReady in Streaming Policy" - }, - "StreamingPolicyWidevineConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class to specify configurations of Widevine in Streaming Policy" - }, - "StreamingPolicyFairPlayConfiguration": { - "properties": { - "customLicenseAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - }, - "allowPersistentLicense": { - "type": "boolean", - "description": "All license to be persistent or not" - } - }, - "type": "object", - "required": [ - "allowPersistentLicense" - ], - "description": "Class to specify configurations of FairPlay in Streaming Policy" - }, - "CbcsDrmConfiguration": { - "properties": { - "fairPlay": { - "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration", - "description": "FairPlay configurations" - }, - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" - }, - "CencDrmConfiguration": { - "properties": { - "playReady": { - "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration", - "description": "PlayReady configurations" - }, - "widevine": { - "$ref": "#/definitions/StreamingPolicyWidevineConfiguration", - "description": "Widevine configurations" - } - }, - "type": "object", - "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" - }, - "ClearKeyEncryptionConfiguration": { - "properties": { - "customKeysAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering content keys to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token value is {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId." - } - }, - "type": "object", - "description": "Class to specify ClearKey configuration of common encryption schemes in Streaming Policy" - }, - "EnabledProtocols": { - "properties": { - "download": { - "type": "boolean", - "description": "Enable Download protocol or not" - }, - "dash": { - "type": "boolean", - "description": "Enable DASH protocol or not" - }, - "hls": { - "type": "boolean", - "description": "Enable HLS protocol or not" - }, - "smoothStreaming": { - "type": "boolean", - "description": "Enable SmoothStreaming protocol or not" - } - }, - "type": "object", - "required": [ - "download", - "dash", - "hls", - "smoothStreaming" - ], - "description": "Class to specify which protocols are enabled" - }, - "NoEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - } - }, - "type": "object", - "description": "Class for NoEncryption scheme" - }, - "EnvelopeEncryption": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "customKeyAcquisitionUrlTemplate": { - "type": "string", - "description": "Template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested." - } - }, - "type": "object", - "description": "Class for EnvelopeEncryption encryption scheme" - }, - "CommonEncryptionCenc": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CencDrmConfiguration", - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" - }, - "clearKeyEncryptionConfiguration": { - "$ref": "#/definitions/ClearKeyEncryptionConfiguration", - "description": "Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme." - } - }, - "type": "object", - "description": "Class for envelope encryption scheme" - }, - "CommonEncryptionCbcs": { - "properties": { - "enabledProtocols": { - "$ref": "#/definitions/EnabledProtocols", - "description": "Representing supported protocols" - }, - "clearTracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Representing which tracks should not be encrypted" - }, - "contentKeys": { - "$ref": "#/definitions/StreamingPolicyContentKeys", - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" - }, - "drm": { - "$ref": "#/definitions/CbcsDrmConfiguration", - "description": "Configuration of DRMs for current encryption scheme" - }, - "clearKeyEncryptionConfiguration": { - "$ref": "#/definitions/ClearKeyEncryptionConfiguration", - "description": "Optional configuration supporting ClearKey in CommonEncryptionCbcs encryption scheme." - } - }, - "type": "object", - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "StreamingPolicyProperties": { - "properties": { - "created": { - "type": "string", - "format": "date-time", - "description": "Creation time of Streaming Policy", - "readOnly": true, - "x-nullable": false - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { - "$ref": "#/definitions/EnvelopeEncryption", - "description": "Configuration of EnvelopeEncryption" - }, - "commonEncryptionCenc": { - "$ref": "#/definitions/CommonEncryptionCenc", - "description": "Configuration of CommonEncryptionCenc" - }, - "commonEncryptionCbcs": { - "$ref": "#/definitions/CommonEncryptionCbcs", - "description": "Configuration of CommonEncryptionCbcs" - }, - "noEncryption": { - "$ref": "#/definitions/NoEncryption", - "description": "Configurations of NoEncryption" - } - }, - "type": "object", - "description": "Class to specify properties of Streaming Policy" - }, - "StreamingPolicy": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingPolicyProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Policy resource" - }, - "StreamingLocatorContentKey": { - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "ID of Content Key" - }, - "type": { - "type": "string", - "enum": [ - "CommonEncryptionCenc", - "CommonEncryptionCbcs", - "EnvelopeEncryption" - ], - "x-ms-enum": { - "name": "StreamingLocatorContentKeyType", - "values": [ - { - "value": "CommonEncryptionCenc", - "description": "Common Encryption using CENC" - }, - { - "value": "CommonEncryptionCbcs", - "description": "Common Encryption using CBCS" - }, - { - "value": "EnvelopeEncryption", - "description": "Envelope Encryption" - } - ], - "modelAsString": true - }, - "description": "Encryption type of Content Key", - "readOnly": true, - "x-nullable": false - }, - "labelReferenceInStreamingPolicy": { - "type": "string", - "description": "Label of Content Key as specified in the Streaming Policy" - }, - "value": { - "type": "string", - "description": "Value of Content Key" - }, - "policyName": { - "type": "string", - "description": "ContentKeyPolicy used by Content Key", - "readOnly": true - }, - "tracks": { - "type": "array", - "items": { - "$ref": "#/definitions/TrackSelection" - }, - "x-ms-identifiers": [], - "description": "Tracks which use this Content Key", - "readOnly": true - } - }, - "type": "object", - "required": [ - "id" - ], - "description": "Class for content key in Streaming Locator" - }, - "StreamingPath": { - "properties": { - "streamingProtocol": { - "type": "string", - "enum": [ - "Hls", - "Dash", - "SmoothStreaming", - "Download" - ], - "x-ms-enum": { - "name": "StreamingPolicyStreamingProtocol", - "values": [ - { - "value": "Hls", - "description": "HLS protocol" - }, - { - "value": "Dash", - "description": "DASH protocol" - }, - { - "value": "SmoothStreaming", - "description": "SmoothStreaming protocol" - }, - { - "value": "Download", - "description": "Download protocol" - } - ], - "modelAsString": true - }, - "description": "Streaming protocol" - }, - "encryptionScheme": { - "type": "string", - "enum": [ - "NoEncryption", - "EnvelopeEncryption", - "CommonEncryptionCenc", - "CommonEncryptionCbcs" - ], - "x-ms-enum": { - "name": "EncryptionScheme", - "values": [ - { - "value": "NoEncryption", - "description": "NoEncryption scheme" - }, - { - "value": "EnvelopeEncryption", - "description": "EnvelopeEncryption scheme" - }, - { - "value": "CommonEncryptionCenc", - "description": "CommonEncryptionCenc scheme" - }, - { - "value": "CommonEncryptionCbcs", - "description": "CommonEncryptionCbcs scheme" - } - ], - "modelAsString": true - }, - "description": "Encryption scheme" - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Streaming paths for each protocol and encryptionScheme pair" - } - }, - "type": "object", - "required": [ - "streamingProtocol", - "encryptionScheme" - ], - "description": "Class of paths for streaming" - }, - "StreamingLocatorProperties": { - "properties": { - "assetName": { - "type": "string", - "description": "Asset Name" - }, - "created": { - "type": "string", - "format": "date-time", - "description": "The creation time of the Streaming Locator.", - "readOnly": true, - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "The end time of the Streaming Locator." - }, - "streamingLocatorId": { - "type": "string", - "format": "uuid", - "description": "The StreamingLocatorId of the Streaming Locator." - }, - "streamingPolicyName": { - "type": "string", - "description": "Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'" - }, - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." - }, - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "The ContentKeys used by this Streaming Locator." - }, - "alternativeMediaId": { - "type": "string", - "description": "Alternative Media ID of this Streaming Locator" - }, - "filters": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of asset or account filters which apply to this streaming locator" - } - }, - "type": "object", - "required": [ - "assetName", - "streamingPolicyName" - ], - "description": "Properties of the Streaming Locator." - }, - "ListContentKeysResponse": { - "properties": { - "contentKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - }, - "description": "ContentKeys used by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listContentKeys action" - }, - "ListPathsResponse": { - "properties": { - "streamingPaths": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPath" - }, - "x-ms-identifiers": [], - "description": "Streaming Paths supported by current Streaming Locator" - }, - "downloadPaths": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Download Paths supported by current Streaming Locator" - } - }, - "type": "object", - "description": "Class of response for listPaths action" - }, - "StreamingLocator": { - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/StreamingLocatorProperties", - "x-ms-client-flatten": true - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "type": "object", - "description": "A Streaming Locator resource" - }, - "StreamingPolicyCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "A collection of StreamingPolicy 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 StreamingPolicy items." - }, - "StreamingLocatorCollection": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "A collection of StreamingLocator 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 StreamingLocator items." - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies": { - "get": { - "summary": "List Streaming Policies", - "description": "Lists the Streaming Policies in the account", - "operationId": "StreamingPolicies_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicyCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingPolicy", - "x-ms-examples": { - "Lists Streaming Policies": { - "$ref": "examples/streaming-policies-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}": { - "get": { - "summary": "Get a Streaming Policy", - "description": "Get the details of a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Policy by name": { - "$ref": "examples/streaming-policy-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Policy", - "description": "Create a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingPolicy" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingPolicy" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Policy with clear streaming": { - "$ref": "examples/streaming-policies-create-clear.json" - }, - "Creates a Streaming Policy with envelopeEncryption only": { - "$ref": "examples/streaming-policies-create-envelopeEncryption-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCenc only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-only.json" - }, - "Creates a Streaming Policy with commonEncryptionCbcs only": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-only.json" - }, - "Creates a Streaming Policy with secure streaming": { - "$ref": "examples/streaming-policies-create-secure-streaming.json" - }, - "Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc.": { - "$ref": "examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json" - }, - "Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs.": { - "$ref": "examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Policy", - "description": "Deletes a Streaming Policy in the Media Services account", - "operationId": "StreamingPolicies_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingPolicyName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Policy name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Policy": { - "$ref": "examples/streaming-policies-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators": { - "get": { - "summary": "List Streaming Locators", - "description": "Lists the Streaming Locators in the account", - "operationId": "StreamingLocators_List", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocatorCollection" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "Restricts the set of items returned." - }, - { - "name": "$top", - "in": "query", - "required": false, - "type": "integer", - "format": "int32", - "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." - }, - { - "name": "$orderby", - "in": "query", - "required": false, - "type": "string", - "description": "Specifies the key by which the result collection should be ordered." - } - ], - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-odata": "#/definitions/StreamingLocator", - "x-ms-examples": { - "Lists Streaming Locators": { - "$ref": "examples/streaming-locators-list.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}": { - "get": { - "summary": "Get a Streaming Locator", - "description": "Get the details of a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Get", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Get a Streaming Locator by name": { - "$ref": "examples/streaming-locators-get-by-name.json" - } - } - }, - "put": { - "summary": "Create a Streaming Locator", - "description": "Create a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Create", - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/StreamingLocator" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingLocator" - }, - "description": "The request parameters" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Creates a Streaming Locator with clear streaming": { - "$ref": "examples/streaming-locators-create-clear.json" - }, - "Creates a Streaming Locator with secure streaming": { - "$ref": "examples/streaming-locators-create-secure.json" - }, - "Creates a Streaming Locator with user defined content keys": { - "$ref": "examples/streaming-locators-create-secure-userDefinedContentKeys.json" - } - } - }, - "delete": { - "summary": "Delete a Streaming Locator", - "description": "Deletes a Streaming Locator in the Media Services account", - "operationId": "StreamingLocators_Delete", - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "Delete a Streaming Locator": { - "$ref": "examples/streaming-locators-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listContentKeys": { - "post": { - "summary": "List Content Keys", - "description": "List Content Keys used by this Streaming Locator", - "operationId": "StreamingLocators_ListContentKeys", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListContentKeysResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Content Keys": { - "$ref": "examples/streaming-locators-list-content-keys.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingLocators/{streamingLocatorName}/listPaths": { - "post": { - "summary": "List Paths", - "description": "List Paths supported by this Streaming Locator", - "operationId": "StreamingLocators_ListPaths", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListPathsResponse" - } - }, - "default": { - "description": "Detailed error information.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "name": "streamingLocatorName", - "in": "path", - "required": true, - "type": "string", - "description": "The Streaming Locator name." - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "x-ms-examples": { - "List Paths which has streaming paths only": { - "$ref": "examples/streaming-locators-list-paths-streaming-only.json" - }, - "List Paths which has streaming paths and download paths": { - "$ref": "examples/streaming-locators-list-paths-streaming-and-download.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." - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-create.json deleted file mode 100644 index 22f28b832d7c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-create.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "newAccountFilter", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAccountFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/newAccountFilter", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-delete.json deleted file mode 100644 index 5a35944c4ec6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-get-by-name.json deleted file mode 100644 index a8484c222e27..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-get-by-name.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTrack", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-list-all.json deleted file mode 100644 index fd0e0226167b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-list-all.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "accountFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-update.json deleted file mode 100644 index bc85da6de72b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/accountFilters-update.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "filterName": "accountFilterWithTimeWindowAndTrack", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "accountFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/accountFilters/accountFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/accountFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-create.json deleted file mode 100644 index 42fa4c251352..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-create.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text3", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new track", - "fileName": "text3.ttml", - "playerVisibility": "Visible" - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - }, - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - }, - "200": { - "body": { - "name": "text3", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text3", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text3.ttml", - "displayName": "A new track", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-delete.json deleted file mode 100644 index 2e472160a153..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-delete.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2023-01-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - } - }, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-get-by-name.json deleted file mode 100644 index 757dd580f752..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-list-all.json deleted file mode 100644 index edcd13207cef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-list-all.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "video", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/video", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.VideoTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "audio", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/audio", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.AudioTrack" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - }, - { - "name": "text2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text2", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "text2.vtt", - "displayName": "user uploaded text track", - "languageCode": "en-us", - "playerVisibility": "Hidden", - "hlsSettings": { - "default": true, - "forced": true, - "characteristics": "public.accessibility.transcribes-spoken-dialog,public.easy-to-read" - } - }, - "provisioningState": "Succeeded" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-result-by-id.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-result-by-id.json deleted file mode 100644 index d8123d6ebe44..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-result-by-id.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationResults/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "type": "Microsoft.Media/mediaservices/assets/tracks/operationResults", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "Auto generated", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "Succeeded" - } - } - }, - "202": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json deleted file mode 100644 index 435df337ab6d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - "startTime": "2023-01-01T00:00:00Z", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json deleted file mode 100644 index 2e3e4097f902..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "86835197-3b47-402e-b313-70b82eaba296", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "86835197-3b47-402e-b313-70b82eaba296", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/86835197-3b47-402e-b313-70b82eaba296", - "startTime": "2023-01-01T00:00:00Z", - "endTime": "2023-01-01T00:00:30Z", - "status": "Failed", - "error": { - "code": "ClientError", - "message": "Error while parsing WEBVTT file and creating CMFT header." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state.json deleted file mode 100644 index 06f5bce5b3b6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-operation-status-by-id-terminal-state.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "operationId": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1/operationStatuses/e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - "startTime": "2023-01-01T00:00:00Z", - "endTime": "2023-01-01T00:00:30Z", - "status": "Succeeded" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update-data.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update-data.json deleted file mode 100644 index bb66e3ff4f3f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update-data.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text2", - "api-version": "2023-01-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update.json deleted file mode 100644 index 3c6a10eae5c5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/asset-tracks-update.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "trackName": "text1", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "displayName": "A new name" - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01", - "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2023-01-01" - }, - "body": { - "name": "text1", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/tracks/text1", - "type": "Microsoft.Media/mediaservices/assets/tracks", - "properties": { - "track": { - "@odata.type": "#Microsoft.Media.TextTrack", - "fileName": "auto_generated.ttml", - "displayName": "A new name", - "languageCode": "en-us", - "playerVisibility": "Visible" - }, - "provisioningState": "InProgress" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-create.json deleted file mode 100644 index 99c9a5cdf244..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-create.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "newAssetFilter", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Audio" - }, - { - "property": "Language", - "operation": "NotEqual", - "value": "en" - }, - { - "property": "FourCC", - "operation": "NotEqual", - "value": "EC-3" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "operation": "Equal", - "value": "Video" - }, - { - "property": "Bitrate", - "operation": "Equal", - "value": "3000000-5000000" - } - ] - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - }, - "200": { - "body": { - "name": "newAssetFilter", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-delete.json deleted file mode 100644 index efd1adc6cbc7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-delete.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-get-by-name.json deleted file mode 100644 index 703f267f0ef3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-get-by-name.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-list-all.json deleted file mode 100644 index c82534790b6b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-list-all.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - }, - { - "name": "assetFilterWithTimeWindow", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 0, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [] - } - }, - { - "name": "assetFilterWithTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-update.json deleted file mode 100644 index cfca8d950506..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assetFilters-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountRainer", - "filterName": "assetFilterWithTimeWindowAndTrack", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "assetFilterWithTimeWindowAndTrack", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack", - "type": "Microsoft.Media/mediaservices/assets/assetFilters", - "properties": { - "presentationTimeRange": { - "startTimestamp": 10, - "endTimestamp": 170000000, - "presentationWindowDuration": 9223372036854774806, - "liveBackoffDuration": 0, - "timescale": 10000000, - "forceEndTimestamp": false - }, - "firstQuality": { - "bitrate": 128000 - }, - "tracks": [ - { - "trackSelections": [ - { - "property": "Type", - "value": "Audio", - "operation": "Equal" - }, - { - "property": "Language", - "value": "en", - "operation": "NotEqual" - }, - { - "property": "FourCC", - "value": "EC-3", - "operation": "NotEqual" - } - ] - }, - { - "trackSelections": [ - { - "property": "Type", - "value": "Video", - "operation": "Equal" - }, - { - "property": "Bitrate", - "value": "3000000-5000000", - "operation": "Equal" - } - ] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create-with-encryption-scope.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create-with-encryption-scope.json deleted file mode 100644 index fc8c10bae713..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create-with-encryption-scope.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0", - "encryptionScope": "encryptionScope1" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None", - "encryptionScope": "encryptionScope1" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None", - "encryptionScope": "encryptionScope1" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create.json deleted file mode 100644 index 1ad1d1ab3201..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-create.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountLogan", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Logan", - "storageAccountName": "storage0" - } - } - }, - "responses": { - "201": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.08Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - }, - "200": { - "body": { - "name": "ClimbingMountLogan", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "09194258-36ba-4403-abb3-68780e6bc545", - "created": "2018-08-08T18:29:26.08Z", - "lastModified": "2018-08-08T18:29:26.107Z", - "description": "A documentary showing the ascent of Mount Logan", - "container": "asset-09194258-36ba-4403-abb3-68780e6bc545", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-delete.json deleted file mode 100644 index fa123d992ddc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-by-name.json deleted file mode 100644 index 9ebb7bcf11b2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-by-name.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountAdams", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-encryption-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-encryption-keys.json deleted file mode 100644 index 7c5d5797a59b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-get-encryption-keys.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "key": "AAAAAAAAAAAAAAAAAAAAAA==", - "assetFileEncryptionMetadata": [ - { - "initializationVector": "-988929866", - "assetFileName": "AssetFile0", - "assetFileId": "a9536fa7-bd5d-4f84-a137-d1290982fe95" - }, - { - "initializationVector": "1604993689", - "assetFileName": "AssetFile1", - "assetFileId": "f4060046-94ac-422d-824c-3f1d6aa3ecf2" - }, - { - "initializationVector": "100082635", - "assetFileName": "AssetFile2", - "assetFileId": "485968d3-ddae-4b13-98e7-901201a9620b" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-all.json deleted file mode 100644 index bb77cde2a688..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-all.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "258878ef-fe05-4518-988f-052e86dc19f6", - "created": "2018-08-08T18:29:24.3948982Z", - "lastModified": "2018-08-08T21:29:24.3948982Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-by-date.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-by-date.json deleted file mode 100644 index f16941565816..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-by-date.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01", - "$orderby": "properties/created" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingLittleTahoma", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "created": "2012-04-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00003", - "description": "A documentary showing the ascent of Little Tahoma", - "container": "asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - }, - { - "name": "ClimbingMountRainer", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "8cdacfe5-8473-413a-9aec-dd2a478b37c8", - "created": "2018-08-08T18:29:25.0514734Z", - "lastModified": "2018-08-08T21:29:25.0514734Z", - "alternateId": "altClimbingMountRainer", - "description": "descClimbingMountRainer", - "container": "testasset0", - "storageAccountName": "storage0", - "storageEncryptionFormat": "None" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-in-date-range.json deleted file mode 100644 index 4b2807c56218..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-in-date-range.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01", - "$orderby": "properties/created", - "$filter": "properties/created gt 2012-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "ClimbingMountRainier", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "alternateId": "CLIMB00001", - "description": "A documentary showing the ascent of Mount Rainier", - "container": "asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountAdams", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "1b648c1a-2268-461d-a1da-742bde23db40", - "created": "2013-02-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "alternateId": "CLIMB00002", - "description": "A documentary showing the ascent of Mount Adams", - "container": "asset-1b648c1a-2268-461d-a1da-742bde23db40", - "storageEncryptionFormat": "None" - } - }, - { - "name": "ClimbingMountSaintHelens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "14d58c40-ec1f-446c-b041-f5cff949bd1d", - "created": "2013-03-01T00:00:00Z", - "lastModified": "2013-04-01T00:00:00Z", - "alternateId": "CLIMB00005", - "description": "A documentary showing the ascent of Saint Helens", - "container": "asset-14d58c40-ec1f-446c-b041-f5cff949bd1d", - "storageEncryptionFormat": "MediaStorageClientEncryption" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-sas-urls.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-sas-urls.json deleted file mode 100644 index 026e71d0fedd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-sas-urls.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2023-01-01", - "parameters": { - "permissions": "ReadWrite", - "expiryTime": "2018-01-01T10:00:00.007Z" - } - }, - "responses": { - "200": { - "body": { - "assetContainerSasUrls": [ - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw", - "https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=&se=2018-01-01T10:00:00Z&sp=lrw" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-streaming-locators.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-streaming-locators.json deleted file mode 100644 index 2933f2e8eb95..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-list-streaming-locators.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountSaintHelens", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "streamingLocators": [ - { - "name": "secureStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9729344Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "36b74ce3-20b4-4de0-84f1-97e9138e886c", - "streamingPolicyName": "secureStreamingPolicy" - }, - { - "name": "clearStreamingLocator", - "assetName": "ClimbingMountSaintHelens", - "created": "2018-08-08T18:29:26.9487636Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "3e8d9ac3-50f6-4f6d-8482-078ceb56f23a", - "streamingPolicyName": "clearStreamingPolicy" - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-update.json deleted file mode 100644 index 71f3d5bf14a2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/assets-update.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "assetName": "ClimbingMountBaker", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "A documentary showing the ascent of Mount Baker in HD" - } - } - }, - "responses": { - "200": { - "body": { - "name": "ClimbingMountBaker", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker", - "type": "Microsoft.Media/mediaservices/assets", - "properties": { - "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b", - "created": "2011-02-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:26.503Z", - "alternateId": "CLIMB00004", - "description": "A documentary showing the ascent of Mount Baker in HD", - "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b", - "storageEncryptionFormat": "None" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-multiple-options.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-multiple-options.json deleted file mode 100644 index 9100da7ebeb9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-multiple-options.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyCreatedWithMultipleOptions", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - }, - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyCreatedWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyCreatedWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "07ad673b-dc14-4230-adab-716622f33992", - "created": "2018-08-08T18:29:29.98Z", - "lastModified": "2018-08-08T18:29:29.98Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "8dac9510-770a-401f-8f2b-f72640977ed0", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - }, - { - "policyOptionId": "fc121776-6ced-4135-be92-f928dedc029a", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-nodrm-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-nodrm-token.json deleted file mode 100644 index 2aeaa48b5c24..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-nodrm-token.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - }, - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithClearKeyOptionAndSwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndSwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "2926c1bc-4dec-4a11-9d19-3f99006530a9", - "created": "2018-08-08T18:29:29.837Z", - "lastModified": "2018-08-08T18:29:29.837Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "e7d4d465-b6f7-4830-9a21-74a7326ef797", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [], - "restrictionTokenType": "Swt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-playready-open.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-playready-open.json deleted file mode 100644 index 47b6ced7c5fa..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-playready-open.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "securityLevel": "SL150", - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload", - "securityLevel": "SL150" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:29.51Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "c52f9af0-1f53-4775-8edb-af2d9a6e28cd", - "name": "ArmPolicyOptionName", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": true, - "beginDate": "2017-10-16T18:22:53.46Z", - "playRight": { - "scmsRestriction": 2, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": true, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "Persistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "UltraVioletDownload", - "securityLevel": "SL150" - } - ] - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-widevine-token.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-widevine-token.json deleted file mode 100644 index 0d1356edda70..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-create-widevine-token.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "ArmPolicyDescription", - "options": [ - { - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "AQAB", - "modulus": "AQAD" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAAAAAAAAAAAAAAAAAAAAA==" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - }, - "201": { - "body": { - "name": "PolicyWithWidevineOptionAndJwtTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithWidevineOptionAndJwtTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "bad1d030-7d5c-4643-8f1e-49807a4bf64c", - "created": "2018-08-08T18:29:29.663Z", - "lastModified": "2018-08-08T18:29:29.663Z", - "description": "ArmPolicyDescription", - "options": [ - { - "policyOptionId": "26fee004-8dfa-4828-bcad-5e63c637534f", - "name": "widevineoption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "urn:issuer", - "audience": "urn:audience", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyRsaTokenKey", - "exponent": "", - "modulus": "" - }, - "alternateVerificationKeys": [ - { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - } - ], - "requiredClaims": [], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-delete.json deleted file mode 100644 index d5a07c7843dc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-by-name.json deleted file mode 100644 index 73ce92c7e557..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-by-name.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-with-secrets.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-with-secrets.json deleted file mode 100644 index 2a78619c6fbd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-get-with-secrets.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithMultipleOptions", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "AAA=" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-all.json deleted file mode 100644 index 7cc9e1e51e3b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-all.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier", - "claimValue": null - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt", - "openIdConnectDiscoveryDocument": null - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "name": null, - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "beginDate": null, - "expirationDate": null, - "relativeBeginDate": null, - "relativeExpirationDate": null, - "gracePeriod": null, - "playRight": { - "firstPlayExpiration": null, - "scmsRestriction": null, - "agcAndColorStripeRestriction": null, - "explicitAnalogTelevisionOutputRestriction": null, - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed", - "uncompressedDigitalVideoOpl": null, - "compressedDigitalVideoOpl": null, - "analogVideoOpl": null, - "compressedDigitalAudioOpl": null, - "uncompressedDigitalAudioOpl": null - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified", - "securityLevel": "SL2000" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-by-lastModified.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-by-lastModified.json deleted file mode 100644 index 285586839ec1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-by-lastModified.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01", - "$orderby": "properties/lastModified" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "PolicyWithPlayReadyOptionAndOpenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithPlayReadyOptionAndOpenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "a9bacd1d-60f5-4af3-8d2b-cf46ca5c9b04", - "created": "2012-11-01T00:00:00Z", - "lastModified": "2012-11-01T00:00:00Z", - "description": "A policy with one PlayReady option and Open Restriction.", - "options": [ - { - "policyOptionId": "294a833f-f128-48be-9edf-8d1bb5b35ff3", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration", - "licenses": [ - { - "allowTestDevices": false, - "playRight": { - "digitalVideoOnlyContentRestriction": false, - "imageConstraintForAnalogComponentVideoRestriction": false, - "imageConstraintForAnalogComputerMonitorRestriction": false, - "allowPassingVideoContentToUnknownOutput": "NotAllowed" - }, - "licenseType": "NonPersistent", - "contentKeyLocation": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - }, - "contentType": "Unspecified", - "securityLevel": "SL2000" - } - ], - "responseCustomData": "testCustomData" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithMultipleOptions", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithMultipleOptions", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "ed7f3d1b-cfa7-4181-b966-e0b3027eec3a", - "created": "2015-12-01T00:00:00Z", - "lastModified": "2016-12-02T00:00:00Z", - "description": "A policy with multiple options.", - "options": [ - { - "policyOptionId": "caf1e28c-8288-4301-8c46-c0f9312c512f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - }, - { - "policyOptionId": "da346259-0cd6-4609-89dc-15ac131bd92f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration", - "widevineTemplate": "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - }, - { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2017-11-01T00:00:00Z", - "description": "A policy with one ClearKey option and Open Restriction.", - "options": [ - { - "policyOptionId": "a3448d09-567a-4642-8309-d17e846be59f", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyTokenRestriction", - "issuer": "http://testacs", - "audience": "urn:test", - "primaryVerificationKey": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey", - "keyValue": "" - }, - "alternateVerificationKeys": [], - "requiredClaims": [ - { - "claimType": "urn:microsoft:azure:mediaservices:contentkeyidentifier" - }, - { - "claimType": "DRM", - "claimValue": "Widevine" - } - ], - "restrictionTokenType": "Jwt" - } - } - ] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-in-date-range.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-in-date-range.json deleted file mode 100644 index 48a25b390eba..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-list-in-date-range.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01", - "$filter": "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01" - }, - "responses": { - "200": { - "body": { - "value": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-update.json deleted file mode 100644 index f5b6f7a3bdae..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/content-key-policies-update.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "contentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "description": "Updated Policy", - "options": [ - { - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "name": "PolicyWithClearKeyOptionAndTokenRestriction", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/contentKeyPolicies/PolicyWithClearKeyOptionAndTokenRestriction", - "type": "Microsoft.Media/mediaservices/contentKeyPolicies", - "properties": { - "policyId": "8352435b-ebea-4681-aae7-e19277771f64", - "created": "2017-12-01T00:00:00Z", - "lastModified": "2018-08-08T18:29:30.303Z", - "description": "Updated Policy", - "options": [ - { - "policyOptionId": "7d3f4bc1-d2bf-43a3-b02e-a7e31ab15d43", - "name": "ClearKeyOption", - "configuration": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - }, - "restriction": { - "@odata.type": "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - } - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-clear.json deleted file mode 100644 index de7c915e3574..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-clear.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedClearStreamingLocator", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "streamingPolicyName": "clearStreamingPolicy", - "assetName": "ClimbingMountRainier" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedClearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedClearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.4323237Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "e34b0fc4-3be0-4a3c-9793-1f6b7be5b013", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json deleted file mode 100644 index 450e5535dadd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "assetName": "ClimbingMountRainier", - "streamingPolicyName": "secureStreamingPolicy", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000A", - "contentKeys": [ - { - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "id": "60000000-0000-0000-0000-000000000001", - "value": "1UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "id": "60000000-0000-0000-0000-000000000004", - "value": "4UqLohAfWsEGkULYxHjYZg==" - }, - { - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "id": "60000000-0000-0000-0000-000000000007", - "value": "7UqLohAfWsEGkULYxHjYZg==" - } - ] - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.7859424Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "90000000-0000-0000-0000-00000000000a", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [ - { - "id": "60000000-0000-0000-0000-000000000007", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000004", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "60000000-0000-0000-0000-000000000001", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure.json deleted file mode 100644 index fb3c9b7a19e3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-create-secure.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "UserCreatedSecureStreamingLocator", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "assetName": "ClimbingMountRainier", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z" - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/UserCreatedSecureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.6243295Z", - "startTime": "2018-03-01T00:00:00Z", - "endTime": "2028-12-31T23:59:59.9999999Z", - "streamingLocatorId": "962775be-41fb-452a-b0dc-72ca2543a945", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "contentKeys": [ - { - "id": "1b2d5581-4518-4a51-ad8a-f55d3bf993d4", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "tracks": [] - }, - { - "id": "1a9858b1-3566-4bf1-9fee-60f2fb98e7e4", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "tracks": [] - }, - { - "id": "5faac86a-3aca-4d6b-99c0-6bb8cc3497a1", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "tracks": [] - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-delete.json deleted file mode 100644 index 305261ffffa9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-get-by-name.json deleted file mode 100644 index 9e25956bdce1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-get-by-name.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:32.1154071Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7684043b-f6d1-44a7-8bed-8a4aa474c5a4", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-content-keys.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-content-keys.json deleted file mode 100644 index 0f3c8d17aac0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-content-keys.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "contentKeys": [ - { - "id": "9259eb06-eeee-4f77-987f-48f4ea5c649f", - "type": "EnvelopeEncryption", - "labelReferenceInStreamingPolicy": "aesDefaultKey", - "value": "QpiqeQROdN5xamnfUF2Wdw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "06bfeff1-2bb6-4f58-af27-a2767f058bca", - "type": "CommonEncryptionCenc", - "labelReferenceInStreamingPolicy": "cencDefaultKey", - "value": "ZjgWhNnqnqcov/h+wrYusw==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - }, - { - "id": "799e78a0-ed6f-4179-9222-ed4ec4223cec", - "type": "CommonEncryptionCbcs", - "labelReferenceInStreamingPolicy": "cbcsDefaultKey", - "value": "FjZ3n3yRcVxRFftdYFbe9g==", - "policyName": "PolicyWithMultipleOptions", - "tracks": [] - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-and-download.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-and-download.json deleted file mode 100644 index 65bc3b8469df..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-and-download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "clearStreamingLocator", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=m3u8-aapl)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=m3u8-aapl)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest(format=mpd-time-csf)", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest(format=mpd-time-csf)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "NoEncryption", - "paths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest1.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest2.ism/manifest", - "/262a87b6-b538-4657-bac1-b6897924471d/videoManifest3.ism/manifest" - ] - } - ], - "downloadPaths": [ - "/262a87b6-b538-4657-bac1-b6897924471d/textTrack.vtt", - "/262a87b6-b538-4657-bac1-b6897924471d/video1.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video2.mp4", - "/262a87b6-b538-4657-bac1-b6897924471d/video3.mp4" - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-only.json deleted file mode 100644 index 55bd4470493d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list-paths-streaming-only.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingLocatorName": "secureStreamingLocator", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "streamingPaths": [ - { - "streamingProtocol": "Hls", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cbc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "EnvelopeEncryption", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cbc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cbc)" - ] - }, - { - "streamingProtocol": "Dash", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=mpd-time-csf,encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=mpd-time-csf,encryption=cenc)" - ] - }, - { - "streamingProtocol": "SmoothStreaming", - "encryptionScheme": "CommonEncryptionCenc", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(encryption=cenc)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(encryption=cenc)" - ] - }, - { - "streamingProtocol": "Hls", - "encryptionScheme": "CommonEncryptionCbcs", - "paths": [ - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest1.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest2.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)", - "/c3cd62e3-d117-4619-bcbd-99f96edd8dbe/videoManifest3.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)" - ] - } - ], - "downloadPaths": [] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list.json deleted file mode 100644 index 561ee03abdac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-locators-list.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/clearStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9341192Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "6a116ec6-0c85-441f-9c31-89a5bc3adf0a", - "streamingPolicyName": "clearStreamingPolicy", - "contentKeys": [] - } - }, - { - "name": "secureStreamingLocator", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingLocators/secureStreamingLocator", - "type": "Microsoft.Media/mediaservices/streamingLocators", - "properties": { - "assetName": "ClimbingMountRainier", - "created": "2018-08-08T18:29:31.9544387Z", - "endTime": "9999-12-31T23:59:59.9999999Z", - "streamingLocatorId": "7338ef90-ffc8-42de-8bff-de8f99973300", - "streamingPolicyName": "secureStreamingPolicy", - "contentKeys": [] - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-clear.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-clear.json deleted file mode 100644 index 7f1e46ba050b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-clear.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.1535417Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json deleted file mode 100644 index 129791efa554..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json deleted file mode 100644 index 7c2153f5e3c1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.6197199Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json deleted file mode 100644 index 81ec4c7729fd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "clearKeyEncryptionConfiguration": { - "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/" - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-only.json deleted file mode 100644 index d4263e0c0bd4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-commonEncryptionCenc-only.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.4678543Z", - "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}" - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-envelopeEncryption-only.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-envelopeEncryption-only.json deleted file mode 100644 index 4f3b39d646dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-envelopeEncryption-only.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.3055712Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-secure-streaming.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-secure-streaming.json deleted file mode 100644 index 54081c84a334..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-create-secure-streaming.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "UserCreatedSecureStreamingPolicy", - "api-version": "2023-01-01", - "parameters": { - "properties": { - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - } - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - } - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - } - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "UserCreatedSecureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:31.7715696Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Equal", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-delete.json deleted file mode 100644 index f4bd3b7d4ff8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "api-version": "2023-01-01" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-list.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-list.json deleted file mode 100644 index adbc90ca28ee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policies-list.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.676067Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - }, - { - "name": "secureStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - }, - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - }, - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCbcsOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCbcs": { - "enabledProtocols": { - "download": false, - "dash": false, - "hls": true, - "smoothStreaming": false - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "cbcsDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "fairPlay": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}", - "allowPersistentLicense": true - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithCommonEncryptionCencOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithCommonEncryptionCencOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithMultipleOptions", - "commonEncryptionCenc": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": false, - "smoothStreaming": true - }, - "clearTracks": [ - { - "trackSelections": [ - { - "property": "FourCC", - "operation": "Unknown", - "value": "hev1" - } - ] - } - ], - "contentKeys": { - "defaultKey": { - "label": "cencDefaultKey" - }, - "keyToTrackMappings": [] - }, - "drm": { - "playReady": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}", - "playReadyCustomAttributes": "PlayReady CustomAttributes" - }, - "widevine": { - "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId" - } - } - } - } - }, - { - "name": "secureStreamingPolicyWithEnvelopeEncryptionOnly", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/secureStreamingPolicyWithEnvelopeEncryptionOnly", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.6781134Z", - "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction", - "envelopeEncryption": { - "enabledProtocols": { - "download": false, - "dash": true, - "hls": true, - "smoothStreaming": true - }, - "clearTracks": [], - "contentKeys": { - "defaultKey": { - "label": "aesDefaultKey" - }, - "keyToTrackMappings": [] - }, - "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}" - } - } - } - ], - "@odata.nextLink": "http://server/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies?api-version=2023-01-01&$skiptoken=secureStreamingPolicyWithEnvelopeEncryptionOnly" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policy-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policy-get-by-name.json deleted file mode 100644 index 0271cfee8a64..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/examples/streaming-policy-get-by-name.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contosorg", - "accountName": "contosomedia", - "streamingPolicyName": "clearStreamingPolicy", - "api-version": "2023-01-01" - }, - "responses": { - "200": { - "body": { - "name": "clearStreamingPolicy", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy", - "type": "Microsoft.Media/mediaservices/streamingPolicies", - "properties": { - "created": "2018-08-08T18:29:30.8501486Z", - "noEncryption": { - "enabledProtocols": { - "download": true, - "dash": true, - "hls": true, - "smoothStreaming": true - } - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/scenarios/MetadataTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/scenarios/MetadataTests.yaml deleted file mode 100644 index 6d5568233ac7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2023-01-01/scenarios/MetadataTests.yaml +++ /dev/null @@ -1,188 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - assetName: - type: string - prefix: assetnam - liveEventName: - type: string - prefix: liveeven - operationId: - type: string - prefix: operatio - transformName: - type: string - prefix: transfor - streamingEndpointName: - type: string - prefix: streamin - filterName: - type: string - prefix: filterna - trackName: - type: string - prefix: tracknam - contentKeyPolicyName: - type: string - prefix: contentk - jobName: - type: string - prefix: jobname - streamingLocatorName: - type: string - prefix: streamin - name: - type: string - prefix: name - liveOutputName: - type: string - prefix: liveoutp - locationName: - type: string - prefix: location - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" - - step: CreateAccount - operationId: Mediaservices_CreateOrUpdate - exampleFile: ../../../../Accounts/stable/2021-11-01/examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - -scenarios: - - scenario: MetadataTests - steps: - - operationId: Assets_CreateOrUpdate - exampleFile: ../examples/assets-create.json - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: Assets_List - exampleFile: ../examples/assets-list-all.json - - operationId: Assets_Get - exampleFile: >- - ../examples/assets-get-by-name.json - - operationId: Assets_Update - exampleFile: ../examples/assets-update.json - - operationId: Assets_ListContainerSas - exampleFile: >- - ../examples/assets-list-sas-urls.json - - operationId: Assets_ListStreamingLocators - exampleFile: >- - ../examples/assets-list-streaming-locators.json - # cannot test Tracks API because we need the asset be encoded(need ism file) - # - operationId: Tracks_CreateOrUpdate - # exampleFile: >- - # ../examples/asset-tracks-create.json - # - operationId: Tracks_List - # exampleFile: >- - # ../examples/asset-tracks-list-all.json - # - operationId: Tracks_Get - # exampleFile: >- - # ../examples/asset-tracks-get-by-name.json - # - operationId: Tracks_Update - # exampleFile: >- - # ../examples/asset-tracks-update.json - # - operationId: Tracks_UpdateTrackData - # exampleFile: >- - # ../examples/asset-tracks-update-data.json - - operationId: StreamingPolicies_Create - exampleFile: >- - ../examples/streaming-policies-create-clear.json - - operationId: StreamingPolicies_List - exampleFile: >- - ../examples/streaming-policies-list.json - - operationId: StreamingPolicies_Get - exampleFile: >- - ../examples/streaming-policy-get-by-name.json - - operationId: StreamingLocators_Create - exampleFile: >- - ../examples/streaming-locators-create-clear.json - requestUpdate: - - replace: /parameters/properties/assetName - value: $(assetName) - - operationId: StreamingLocators_List - exampleFile: >- - ../examples/streaming-locators-list.json - - operationId: StreamingLocators_Get - exampleFile: >- - ../examples/streaming-locators-get-by-name.json - - operationId: StreamingLocators_ListContentKeys - exampleFile: >- - ../examples/streaming-locators-list-content-keys.json - - operationId: StreamingLocators_ListPaths - exampleFile: >- - ../examples/streaming-locators-list-paths-streaming-only.json - - operationId: ContentKeyPolicies_CreateOrUpdate - exampleFile: >- - ../examples/content-key-policies-create-playready-open.json - - operationId: ContentKeyPolicies_List - exampleFile: >- - ../examples/content-key-policies-list-all.json - - operationId: ContentKeyPolicies_Get - exampleFile: >- - ../examples/content-key-policies-get-by-name.json - - operationId: ContentKeyPolicies_Update - exampleFile: >- - ../examples/content-key-policies-update.json - - operationId: ContentKeyPolicies_GetPolicyPropertiesWithSecrets - exampleFile: >- - ../examples/content-key-policies-get-with-secrets.json - - operationId: AssetFilters_CreateOrUpdate - exampleFile: >- - ../examples/assetFilters-create.json - - operationId: AssetFilters_List - exampleFile: >- - ../examples/assetFilters-list-all.json - - operationId: AssetFilters_Get - exampleFile: >- - ../examples/assetFilters-get-by-name.json - - operationId: AssetFilters_Update - exampleFile: >- - ../examples/assetFilters-update.json - - operationId: AccountFilters_CreateOrUpdate - exampleFile: >- - ../examples/accountFilters-create.json - - operationId: AccountFilters_List - exampleFile: >- - ../examples/accountFilters-list-all.json - - operationId: AccountFilters_Get - exampleFile: >- - ../examples/accountFilters-get-by-name.json - - operationId: AccountFilters_Update - exampleFile: >- - ../examples/accountFilters-update.json - - operationId: StreamingPolicies_Delete - exampleFile: >- - ../examples/streaming-policies-delete.json - - operationId: AccountFilters_Delete - exampleFile: >- - ../examples/accountFilters-delete.json - - operationId: AssetFilters_Delete - exampleFile: >- - ../examples/assetFilters-delete.json - - operationId: ContentKeyPolicies_Delete - exampleFile: >- - ../examples/content-key-policies-delete.json - - operationId: StreamingLocators_Delete - exampleFile: >- - ../examples/streaming-locators-delete.json - - operationId: Assets_Delete - exampleFile: ../examples/assets-delete.json - - operationId: Mediaservices_Delete diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-create.json deleted file mode 100644 index 205a3fdbc645..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-create.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": "nb:chid:UUID:00000001-2000-0000-0000-000000000000", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT2S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-delete.json deleted file mode 100644 index 6d8e5103b47e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "Name": "myLiveEvent1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event updated", - "Input": { - "StreamingProtocol": "FragmentedMP4", - "KeyFrameIntervalDuration": "PT6S", - "Endpoints": [], - "AccessToken": null - }, - "Preview": { - "Endpoints": [], - "AccessControl": { - "IP": { - "Allow": [ - { - "Name": "AllowOne", - "Address": "192.1.1.0", - "SubnetPrefixLength": null - } - ] - } - }, - "PreviewLocator": null, - "streamingPolicyName": null - }, - "Encoding": { - "EncodingType": "None", - "PresetName": null - }, - "ProvisioningState": null, - "ResourceState": "Stopped", - "CrossSiteAccessPolicies": null, - "VanityUrl": false, - "StreamOptions": [], - "Created": "2018-03-02T18:25:07.5748853-08:00", - "LastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-all.json deleted file mode 100644 index 756895059862..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-by-name.json deleted file mode 100644 index c7d09630c08f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "vanityUrl": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-reset.json deleted file mode 100644 index 9a30f0878c16..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-start.json deleted file mode 100644 index 9a30f0878c16..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-stop.json deleted file mode 100644 index 1465d38e4368..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-update.json deleted file mode 100644 index dbf9f7c2c3a0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveevent-update.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-create.json deleted file mode 100644 index 6e57bce7b94b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-03-30-preview", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "202": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-delete.json deleted file mode 100644 index f475dbae1b86..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-all.json deleted file mode 100644 index 90f002383c0e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json deleted file mode 100644 index 8ccde48efc47..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-create.json deleted file mode 100644 index 94bdc07e92a6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-create.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-delete.json deleted file mode 100644 index 7e3a8499226a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "Name": "myStreamingEndpoint1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event 1", - "ScaleUnits": 1, - "AccessControl": null, - "AvailabilitySetName": "availableset", - "MaxCacheAge": null, - "CrossSiteAccessPolicies": null, - "CustomHostNames": [], - "HostName": null, - "CdnEnabled": false, - "CdnProvider": null, - "CdnProfile": null, - "FreeTrialEndTime": "0001-01-01T00:00:00-08:00", - "ProvisioningState": null, - "ResourceState": "Stopped", - "Created": "2018-03-02T18:25:09.4897514-08:00", - "LastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json deleted file mode 100644 index 1c1bfcdbf416..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-03-30-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index f91aadf6a9d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-scale.json deleted file mode 100644 index b41181b3e87c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-start.json deleted file mode 100644 index 6bbdf333e387..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-stop.json deleted file mode 100644 index 6bbdf333e387..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-update.json deleted file mode 100644 index b31956ab3f91..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/examples/streamingendpoint-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-03-30-preview", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/streamingservice.json deleted file mode 100644 index 107404381076..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-03-30-preview/streamingservice.json +++ /dev/null @@ -1,1735 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Streaming resource management client for Azure Media Services", - "version": "2018-03-30-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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List Live Events", - "description": "Lists the Live Events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets a Live Event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a Live Event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates a existing Live Event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a Live Event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Live Event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "Starts an existing Live Event.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops an existing Live Event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing Live Event.", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the Live Outputs in the Live Event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a Live Output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a Live Output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a Live Output.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Live Output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the StreamingEndpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all StreamingEndpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a StreamingEndpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Encoding/preview/2018-03-30-preview/Encoding.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." - } - }, - "description": "The HLS configuration." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the Live Output." - }, - "assetName": { - "type": "string", - "description": "The asset name." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "The HLS configuration." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The output snapshot time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Output." - }, - "resourceState": { - "description": "The resource state of the Live Output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "modelAsString": false - } - } - }, - "description": "The JSON object that contains the properties required to create a Live Output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "The Live Output properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List Live Output operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The Live Event endpoint." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The streaming protocol for the Live Event.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "modelAsString": false - } - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 timespan duration of the key frame interval duration." - }, - "accessToken": { - "type": "string", - "description": "The access token." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the Live Event." - } - }, - "description": "The Live Event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event preview." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for LiveEvent preview." - }, - "previewLocator": { - "type": "string", - "description": "The preview locator Guid." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for LiveEvent preview" - } - }, - "description": "The Live Event preview." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "The encoding type for Live Event.", - "enum": [ - "None", - "Basic" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "modelAsString": false - } - }, - "presetName": { - "type": "string", - "description": "The encoding preset name." - } - }, - "description": "The Live Event encoding." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates if remove LiveOutputs on Stop." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "The Live Event description." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "The Live Event input." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "The Live Event preview." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "The Live Event encoding." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the Live Event.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "modelAsString": false - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The Live Event access policies." - }, - "vanityUrl": { - "type": "boolean", - "description": "The Live Event vanity URL flag." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "modelAsString": false - } - }, - "description": "The stream options." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was last modified." - } - }, - "description": "The Live Event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The Live Event properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The Live Event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The exact time the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the StreamingEndpoint." - } - }, - "description": "StreamingEndpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the StreamingEndpoint.", - "title": "ScaleUnit" - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "properties": { - "description": { - "type": "string", - "description": "The StreamingEndpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units.", - "x-nullable": false - }, - "availabilitySetName": { - "type": "string", - "description": "AvailabilitySet name" - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the StreamingEndpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the StreamingEndpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The StreamingEndpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the StreamingEndpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the StreamingEndpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "modelAsString": false - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The StreamingEndpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was last modified." - } - }, - "description": "The StreamingEndpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The StreamingEndpoint properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-03-30-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The StreamingEndpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of StreamingEndpoints." - } - }, - "description": "The StreamingEndpoint list result.", - "title": "StreamingEndpointListResult" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The Version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the Live Event.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if auto start the Live Event.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the Live Output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the StreamingEndpoint.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-create.json deleted file mode 100644 index a201b4eb1e2c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-create.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": "nb:chid:UUID:00000001-2000-0000-0000-000000000000", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT2S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-delete.json deleted file mode 100644 index 628fb07fe2f8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "Name": "myLiveEvent1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event updated", - "Input": { - "StreamingProtocol": "FragmentedMP4", - "KeyFrameIntervalDuration": "PT6S", - "Endpoints": [], - "AccessToken": null - }, - "Preview": { - "Endpoints": [], - "AccessControl": { - "IP": { - "Allow": [ - { - "Name": "AllowOne", - "Address": "192.1.1.0", - "SubnetPrefixLength": null - } - ] - } - }, - "PreviewLocator": null, - "streamingPolicyName": null - }, - "Encoding": { - "EncodingType": "None", - "PresetName": null - }, - "ProvisioningState": null, - "ResourceState": "Stopped", - "CrossSiteAccessPolicies": null, - "VanityUrl": false, - "StreamOptions": [], - "Created": "2018-03-02T18:25:07.5748853-08:00", - "LastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-all.json deleted file mode 100644 index 2ad8ca5c8dab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-by-name.json deleted file mode 100644 index d6adcd0782dd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "vanityUrl": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-reset.json deleted file mode 100644 index 2dda81cb0189..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-start.json deleted file mode 100644 index 2dda81cb0189..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-stop.json deleted file mode 100644 index 4a44932b9ece..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-update.json deleted file mode 100644 index 31d308f52cec..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveevent-update.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-create.json deleted file mode 100644 index 17a7865f1317..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-06-01-preview", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "202": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-delete.json deleted file mode 100644 index 748f3ea3f5db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-all.json deleted file mode 100644 index 812a52c1f1e9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json deleted file mode 100644 index d50b7c253bc1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-create.json deleted file mode 100644 index 0dcd0fdadb19..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-create.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-delete.json deleted file mode 100644 index 7148c5546afe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "Name": "myStreamingEndpoint1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event 1", - "ScaleUnits": 1, - "AccessControl": null, - "AvailabilitySetName": "availableset", - "MaxCacheAge": null, - "CrossSiteAccessPolicies": null, - "CustomHostNames": [], - "HostName": null, - "CdnEnabled": false, - "CdnProvider": null, - "CdnProfile": null, - "FreeTrialEndTime": "0001-01-01T00:00:00-08:00", - "ProvisioningState": null, - "ResourceState": "Stopped", - "Created": "2018-03-02T18:25:09.4897514-08:00", - "LastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json deleted file mode 100644 index 6133ddb6391f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-06-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index c53f4fc3bbe4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-scale.json deleted file mode 100644 index a175800afb0b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-start.json deleted file mode 100644 index 4bdabc55baa2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-stop.json deleted file mode 100644 index 4bdabc55baa2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-update.json deleted file mode 100644 index 7359529c5d4c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/examples/streamingendpoint-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-06-01-preview", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/streamingservice.json deleted file mode 100644 index 2b85e8151dbb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2018-06-01-preview/streamingservice.json +++ /dev/null @@ -1,1774 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Streaming resource management client for Azure Media Services", - "version": "2018-06-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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List Live Events", - "description": "Lists the Live Events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets a Live Event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a Live Event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates a existing Live Event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a Live Event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Live Event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "Starts an existing Live Event.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops an existing Live Event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing Live Event.", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the Live Outputs in the Live Event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a Live Output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a Live Output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a Live Output.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Live Output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the StreamingEndpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all StreamingEndpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a StreamingEndpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." - } - }, - "description": "The HLS configuration." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the Live Output." - }, - "assetName": { - "type": "string", - "description": "The asset name." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "The HLS configuration." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The output snapshot time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Output." - }, - "resourceState": { - "description": "The resource state of the Live Output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "modelAsString": false - } - } - }, - "description": "The JSON object that contains the properties required to create a Live Output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "The Live Output properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List Live Output operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The Live Event endpoint." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The streaming protocol for the Live Event.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "modelAsString": false - } - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 timespan duration of the key frame interval duration." - }, - "accessToken": { - "type": "string", - "description": "The access token." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the Live Event." - } - }, - "description": "The Live Event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event preview." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for LiveEvent preview." - }, - "previewLocator": { - "type": "string", - "description": "The preview locator Guid." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for LiveEvent preview" - }, - "alternativeMediaId": { - "type": "string", - "description": "An Alternative Media Identifier associated with the preview url. This identifier can be used to distinguish the preview of different live events for authorization purposes in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "The Live Event preview." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "The encoding type for Live Event.", - "enum": [ - "None", - "Basic" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "modelAsString": false - } - }, - "presetName": { - "type": "string", - "description": "The encoding preset name." - } - }, - "description": "The Live Event encoding." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates if remove LiveOutputs on Stop." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "The Live Event description." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "The Live Event input." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "The Live Event preview." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "The Live Event encoding." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the Live Event.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "modelAsString": false - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The Live Event access policies." - }, - "vanityUrl": { - "type": "boolean", - "description": "The Live Event vanity URL flag." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "modelAsString": false - } - }, - "description": "The stream options." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was last modified." - } - }, - "description": "The Live Event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The Live Event properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The Live Event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The exact time the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the StreamingEndpoint." - } - }, - "description": "StreamingEndpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the StreamingEndpoint.", - "title": "ScaleUnit" - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "properties": { - "description": { - "type": "string", - "description": "The StreamingEndpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units.", - "x-nullable": false - }, - "availabilitySetName": { - "type": "string", - "description": "AvailabilitySet name" - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the StreamingEndpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the StreamingEndpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The StreamingEndpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the StreamingEndpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the StreamingEndpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "modelAsString": false - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The StreamingEndpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was last modified." - } - }, - "description": "The StreamingEndpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The StreamingEndpoint properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2018-06-01-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The StreamingEndpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of StreamingEndpoints." - } - }, - "description": "The StreamingEndpoint list result.", - "title": "StreamingEndpointListResult" - }, - "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." - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The Version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the Live Event.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if auto start the Live Event.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the Live Output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the StreamingEndpoint.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-create.json deleted file mode 100644 index f60f0d571de9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-create.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT2S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-delete.json deleted file mode 100644 index fde89a247eab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "Name": "myLiveEvent1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event updated", - "Input": { - "StreamingProtocol": "FragmentedMP4", - "KeyFrameIntervalDuration": "PT6S", - "Endpoints": [], - "AccessToken": null - }, - "Preview": { - "Endpoints": [], - "AccessControl": { - "IP": { - "Allow": [ - { - "Name": "AllowOne", - "Address": "192.1.1.0", - "SubnetPrefixLength": null - } - ] - } - }, - "PreviewLocator": null, - "streamingPolicyName": null - }, - "Encoding": { - "EncodingType": "None", - "PresetName": null - }, - "ProvisioningState": null, - "ResourceState": "Stopped", - "CrossSiteAccessPolicies": null, - "VanityUrl": false, - "StreamOptions": [], - "Created": "2018-03-02T18:25:07.5748853-08:00", - "LastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-all.json deleted file mode 100644 index 77da8d8e1894..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-by-name.json deleted file mode 100644 index da80ef5d0805..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "vanityUrl": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-reset.json deleted file mode 100644 index d5443a60b311..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-start.json deleted file mode 100644 index d5443a60b311..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-stop.json deleted file mode 100644 index cdf6c800889b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-update.json deleted file mode 100644 index 4fef83fd1a69..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveevent-update.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2019-05-01-preview", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-create.json deleted file mode 100644 index 473fa7d65cd1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "202": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-delete.json deleted file mode 100644 index 7ff08e04d878..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-all.json deleted file mode 100644 index 879d657299fe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-by-name.json deleted file mode 100644 index 46d56644799c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-create.json deleted file mode 100644 index a0408d3f6bc9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-create.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2019-05-01-preview", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-delete.json deleted file mode 100644 index 40c287acc475..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "Name": "myStreamingEndpoint1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event 1", - "ScaleUnits": 1, - "AccessControl": null, - "AvailabilitySetName": "availableset", - "MaxCacheAge": null, - "CrossSiteAccessPolicies": null, - "CustomHostNames": [], - "HostName": null, - "CdnEnabled": false, - "CdnProvider": null, - "CdnProfile": null, - "FreeTrialEndTime": "0001-01-01T00:00:00-08:00", - "ProvisioningState": null, - "ResourceState": "Stopped", - "Created": "2018-03-02T18:25:09.4897514-08:00", - "LastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-all.json deleted file mode 100644 index bcbc02e5185a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index d3194bf8ceca..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-scale.json deleted file mode 100644 index 6a324b3b86b5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-start.json deleted file mode 100644 index 0ace89511dc6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-stop.json deleted file mode 100644 index 0ace89511dc6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-update.json deleted file mode 100644 index 9e7d32ed3f4e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/examples/streamingendpoint-update.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/streamingservice.json deleted file mode 100644 index 39f6ff96aef0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/preview/2019-05-01-preview/streamingservice.json +++ /dev/null @@ -1,1850 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Streaming resource management client for Azure Media Services", - "version": "2019-05-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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List Live Events", - "description": "Lists the Live Events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets a Live Event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a Live Event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates a existing Live Event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a Live Event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Live Event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "Starts an existing Live Event.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops an existing Live Event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing Live Event.", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the Live Outputs in the Live Event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a Live Output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a Live Output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a Live Output.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Live Output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the StreamingEndpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all StreamingEndpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a StreamingEndpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." - } - }, - "description": "The HLS configuration." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the Live Output." - }, - "assetName": { - "type": "string", - "description": "The asset name." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "The HLS configuration." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The output snapshot time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Output." - }, - "resourceState": { - "description": "The resource state of the Live Output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a Live Output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "The Live Output properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List Live Output operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The Live Event endpoint." - }, - "LiveEventInputAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event Input." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The streaming protocol for the Live Event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "The access control for LiveEvent Input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 timespan duration of the key frame interval duration." - }, - "accessToken": { - "type": "string", - "description": "A unique identifier for a stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the Live Event." - } - }, - "description": "The Live Event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event preview." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for LiveEvent preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the LiveEvent preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An Alternative Media Identifier associated with the StreamingLocator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "The Live Event preview." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "The encoding type for Live Event. This value is specified at creation time and cannot be updated.", - "enum": [ - "None", - "Basic", - "Standard", - "Premium1080p" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The encoding preset name. This value is specified at creation time and cannot be updated." - } - }, - "description": "The Live Event encoding." - }, - "LiveEventInputTrackSelection": { - "properties": { - "property": { - "type": "string", - "description": "Property name to select." - }, - "operation": { - "type": "string", - "description": "Comparing operation." - }, - "value": { - "type": "string", - "description": "Property value to select." - } - }, - "description": "A track selection condition." - }, - "LiveEventOutputTranscriptionTrack": { - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name." - } - }, - "description": "Describes a transcription track in the output of a Live Event, generated using speech-to-text transcription." - }, - "LiveEventTranscription": { - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) used for speech-to-text transcription - it should match the spoken language in the audio track. The value should be in BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are 'en-US' and 'en-GB'." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - } - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a Live Event, generated using speech-to-text transcription." - } - }, - "description": "Describes the transcription tracks in the output of a Live Event, generated using speech-to-text transcription." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates if remove LiveOutputs on Stop." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "The Live Event description." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "The Live Event input." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "The Live Event preview." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "The Live Event encoding." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "description": "The Live Event transcription." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the Live Event.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The Live Event access policies." - }, - "vanityUrl": { - "type": "boolean", - "description": "Specifies whether to use a vanity url with the Live Event. This value is specified at creation time and cannot be updated." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was last modified." - } - }, - "description": "The Live Event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The Live Event properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The Live Event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the StreamingEndpoint." - } - }, - "description": "StreamingEndpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the StreamingEndpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The StreamingEndpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "The name of the AvailabilitySet used with this StreamingEndpoint for high availability streaming. This value can only be set at creation time." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the StreamingEndpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the StreamingEndpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The StreamingEndpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the StreamingEndpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the StreamingEndpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The StreamingEndpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was last modified." - } - }, - "description": "The StreamingEndpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The StreamingEndpoint properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/preview/2019-05-01-preview/Common.json#/definitions/TrackedResource" - } - ], - "description": "The StreamingEndpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of StreamingEndpoints." - } - }, - "description": "The StreamingEndpoint list result.", - "title": "StreamingEndpointListResult" - }, - "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.", - "title": "ApiError" - } - }, - "type": "object", - "description": "The API error." - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The Version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the Live Event.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the Live Output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the StreamingEndpoint.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-create.json deleted file mode 100644 index 0ad4098204e3..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-create.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "id": "nb:chid:UUID:00000001-2000-0000-0000-000000000000", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-delete.json deleted file mode 100644 index fde89a247eab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "Name": "myLiveEvent1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event updated", - "Input": { - "StreamingProtocol": "FragmentedMP4", - "KeyFrameIntervalDuration": "PT6S", - "Endpoints": [], - "AccessToken": null - }, - "Preview": { - "Endpoints": [], - "AccessControl": { - "IP": { - "Allow": [ - { - "Name": "AllowOne", - "Address": "192.1.1.0", - "SubnetPrefixLength": null - } - ] - } - }, - "PreviewLocator": null, - "streamingPolicyName": null - }, - "Encoding": { - "EncodingType": "None", - "PresetName": null - }, - "ProvisioningState": null, - "ResourceState": "Stopped", - "CrossSiteAccessPolicies": null, - "VanityUrl": false, - "StreamOptions": [], - "Created": "2018-03-02T18:25:07.5748853-08:00", - "LastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-all.json deleted file mode 100644 index a0e9e46b653d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-by-name.json deleted file mode 100644 index da80ef5d0805..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "vanityUrl": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-reset.json deleted file mode 100644 index d5443a60b311..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-start.json deleted file mode 100644 index d5443a60b311..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-stop.json deleted file mode 100644 index cdf6c800889b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-update.json deleted file mode 100644 index e5e1fe967932..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveevent-update.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S" - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "vanityUrl": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-create.json deleted file mode 100644 index 473fa7d65cd1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "202": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-delete.json deleted file mode 100644 index 7ff08e04d878..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-all.json deleted file mode 100644 index 879d657299fe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index 46d56644799c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-create.json deleted file mode 100644 index d2aa1a2e4295..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-delete.json deleted file mode 100644 index 40c287acc475..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "Name": "myStreamingEndpoint1", - "Type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "Location": "West US", - "Tags": { - "DynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "Description": "test event 1", - "ScaleUnits": 1, - "AccessControl": null, - "AvailabilitySetName": "availableset", - "MaxCacheAge": null, - "CrossSiteAccessPolicies": null, - "CustomHostNames": [], - "HostName": null, - "CdnEnabled": false, - "CdnProvider": null, - "CdnProfile": null, - "FreeTrialEndTime": "0001-01-01T00:00:00-08:00", - "ProvisioningState": null, - "ResourceState": "Stopped", - "Created": "2018-03-02T18:25:09.4897514-08:00", - "LastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index bcbc02e5185a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2018-07-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index d3194bf8ceca..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-scale.json deleted file mode 100644 index 6a324b3b86b5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-start.json deleted file mode 100644 index 0ace89511dc6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 0ace89511dc6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-update.json deleted file mode 100644 index 99d1524ebd94..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2018-07-01", - "parameters": { - "id": null, - "name": "myStreamingEndpoint1", - "location": "West US", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/streamingservice.json deleted file mode 100644 index 1182631c6681..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2018-07-01/streamingservice.json +++ /dev/null @@ -1,1793 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Streaming resource management client for Azure Media Services", - "version": "2018-07-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List Live Events", - "description": "Lists the Live Events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets a Live Event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a Live Event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates a existing Live Event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a Live Event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Live Event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "Starts an existing Live Event.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops an existing Live Event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing Live Event.", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the Live Outputs in the Live Event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a Live Output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a Live Output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a Live Output.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Live Output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the StreamingEndpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all StreamingEndpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a StreamingEndpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a StreamingEndpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing StreamingEndpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "StreamingEndpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." - } - }, - "description": "The HLS configuration." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the Live Output." - }, - "assetName": { - "type": "string", - "description": "The asset name." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "The HLS configuration." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The output snapshot time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Output." - }, - "resourceState": { - "description": "The resource state of the Live Output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a Live Output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "The Live Output properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List Live Output operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The Live Event endpoint." - }, - "LiveEventInputAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event Input." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The streaming protocol for the Live Event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "The access control for LiveEvent Input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 timespan duration of the key frame interval duration." - }, - "accessToken": { - "type": "string", - "description": "A unique identifier for a stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the Live Event." - } - }, - "description": "The Live Event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for Live Event preview." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for LiveEvent preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the LiveEvent preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An Alternative Media Identifier associated with the StreamingLocator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "The Live Event preview." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "The encoding type for Live Event. This value is specified at creation time and cannot be updated.", - "enum": [ - "None", - "Basic", - "Standard", - "Premium1080p" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The encoding preset name. This value is specified at creation time and cannot be updated." - } - }, - "description": "The Live Event encoding." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates if remove LiveOutputs on Stop." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "The Live Event description." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "The Live Event input." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "The Live Event preview." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "The Live Event encoding." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the Live Event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the Live Event.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The Live Event access policies." - }, - "vanityUrl": { - "type": "boolean", - "description": "Specifies whether to use a vanity url with the Live Event. This value is specified at creation time and cannot be updated." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the Live Event was last modified." - } - }, - "description": "The Live Event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The Live Event properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/TrackedResource" - } - ], - "description": "The Live Event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of Live Outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the StreamingEndpoint." - } - }, - "description": "StreamingEndpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the StreamingEndpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The StreamingEndpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "The name of the AvailabilitySet used with this StreamingEndpoint for high availability streaming. This value can only be set at creation time." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the StreamingEndpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the StreamingEndpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The StreamingEndpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the StreamingEndpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the StreamingEndpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The StreamingEndpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the StreamingEndpoint was last modified." - } - }, - "description": "The StreamingEndpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The StreamingEndpoint properties." - } - }, - "allOf": [ - { - "$ref": "../../../Accounts/stable/2018-07-01/Common.json#/definitions/TrackedResource" - } - ], - "description": "The StreamingEndpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "Th link to the next set of results. Not empty if value contains incomplete list of StreamingEndpoints." - } - }, - "description": "The StreamingEndpoint list result.", - "title": "StreamingEndpointListResult" - }, - "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.", - "title": "ApiError" - } - }, - "type": "object", - "description": "The API error." - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The Version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the Live Event.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the Live Output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the StreamingEndpoint.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-allocate.json deleted file mode 100644 index 95fd7e6461e1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-create.json deleted file mode 100644 index c15c83350440..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-create.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-delete.json deleted file mode 100644 index eddcf4c8ed4b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-all.json deleted file mode 100644 index c5e47d7187db..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-by-name.json deleted file mode 100644 index d7087ca92578..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-reset.json deleted file mode 100644 index 95fd7e6461e1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-start.json deleted file mode 100644 index 95fd7e6461e1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-stop.json deleted file mode 100644 index a23df8bb0574..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-update.json deleted file mode 100644 index 1c7da9a1f50d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveevent-update.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-create.json deleted file mode 100644 index 8f737778b732..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-delete.json deleted file mode 100644 index c4abf69dcc75..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-all.json deleted file mode 100644 index ebf145bcd695..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index fe3c9cfbe866..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2020-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-create.json deleted file mode 100644 index ca9c03071647..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-delete.json deleted file mode 100644 index 03b31961247c..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index 4a08601fdf6f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2020-05-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index 1aa22e2e8c4e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" - }, - "responses": { - "404": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-scale.json deleted file mode 100644 index 4182c5ba595d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-start.json deleted file mode 100644 index 0edeff80c178..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 0edeff80c178..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-update.json deleted file mode 100644 index c8d0d6afd6e6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2020-05-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/streamingservice.json deleted file mode 100644 index a120dbd207f9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2020-05-01/streamingservice.json +++ /dev/null @@ -1,2012 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2020-05-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "404": { - "description": "NotFound" - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../Accounts/stable/2020-05-01/Common.json#/definitions/ApiError" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventInputAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The input endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "A contribution live encoder sends a multiple bitrate stream. The ingested stream passes through the live event without any further processing. It is also called the pass-through mode." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - } - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers. This could result in more client buffering during playback if network bandwidth is low." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-allocate.json deleted file mode 100644 index 1805a4c690d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-create.json deleted file mode 100644 index b04ac7db973d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-create.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-delete.json deleted file mode 100644 index 8c3832b6fd79..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-delete.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-all.json deleted file mode 100644 index cbd42a4a5c07..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-by-name.json deleted file mode 100644 index 0b4cdb9bb80a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-reset.json deleted file mode 100644 index 1805a4c690d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-reset.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-start.json deleted file mode 100644 index 1805a4c690d8..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-stop.json deleted file mode 100644 index 102ce595fa66..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-stop.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-update.json deleted file mode 100644 index 7c933461ef94..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveevent-update.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-create.json deleted file mode 100644 index 2c38d5f3cbcb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-06-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-delete.json deleted file mode 100644 index 7e466f91afb5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-all.json deleted file mode 100644 index f7606a3be4cb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index 6efcbb3eee74..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-create.json deleted file mode 100644 index a1535e956ff6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-delete.json deleted file mode 100644 index cf370bd244ee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index ff6d93f9ed6e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index 87489eb49132..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01" - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-scale.json deleted file mode 100644 index 5d2429609488..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-start.json deleted file mode 100644 index 228bbfd0219f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 228bbfd0219f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-update.json deleted file mode 100644 index dd5f6aa9a155..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-06-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/streamingservice.json deleted file mode 100644 index eec811ad4fd2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-06-01/streamingservice.json +++ /dev/null @@ -1,2061 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2021-06-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "type": "object", - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "type": "object", - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventInputAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "type": "object", - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [ - "url" - ], - "description": "The input endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "type": "object", - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "type": "object", - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [ - "url" - ], - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "type": "object", - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p", - "PassthroughBasic", - "PassthroughStandard" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "This is the same as PassthroughStandard, please see description below. This enumeration value is being deprecated." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - }, - { - "value": "PassthroughBasic", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. In the PassthroughBasic mode, ingestion is limited to up to 5Mbps and only 1 concurrent live output is allowed. Live transcription is not available." - }, - { - "value": "PassthroughStandard", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. Live transcription is available. Ingestion bitrate limits are much higher and up to 3 concurrent live outputs are allowed." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "type": "object", - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "type": "object", - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "type": "object", - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - }, - "x-ms-identifiers": [] - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "type": "object", - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "type": "object", - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "type": "object", - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "x-ms-identifiers": [ - "language" - ], - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers. This could result in more client buffering during playback if network bandwidth is low." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "type": "object", - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "x-ms-identifiers": [ - "identifier" - ], - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "type": "object", - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "type": "object", - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "type": "object", - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-allocate.json deleted file mode 100644 index 789abe61a734..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" - }, - "responses": { - "202": {}, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-create.json deleted file mode 100644 index a532229807d1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-create.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-delete.json deleted file mode 100644 index 511607ce29ee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-delete.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-all.json deleted file mode 100644 index b3277f092491..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-by-name.json deleted file mode 100644 index 571d2deca262..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-reset.json deleted file mode 100644 index 9d3fc798a4bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-reset.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-start.json deleted file mode 100644 index 9d3fc798a4bc..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-stop.json deleted file mode 100644 index 56125b9214fe..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-stop.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-update.json deleted file mode 100644 index 642ac6e07117..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveevent-update.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-create.json deleted file mode 100644 index 233d556acf96..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-create.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-delete.json deleted file mode 100644 index 4cacdb165e55..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01" - }, - "responses": { - "202": {}, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-all.json deleted file mode 100644 index 00294ed84bd5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT30S", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index 4411aa20859b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT30S", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-create.json deleted file mode 100644 index 6ecd0b1284ef..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-delete.json deleted file mode 100644 index 12c7f435feac..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index 1c7db6cf5940..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index f9aa24ea5f9d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-skus.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-skus.json deleted file mode 100644 index 9fc2284213d9..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-list-skus.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "Microsoft.Media/mediaservices/streamingEndpoints", - "capacity": { - "scaleType": "Automatic", - "default": 1, - "minimum": 1, - "maximum": 10 - }, - "sku": { - "name": "Premium" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-scale.json deleted file mode 100644 index f0944822c10b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-start.json deleted file mode 100644 index 6f538cfe301f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 6f538cfe301f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-update.json deleted file mode 100644 index 975b022a81bd..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2021-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2021-11-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/streamingservice.json deleted file mode 100644 index 23d52d9d57f4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2021-11-01/streamingservice.json +++ /dev/null @@ -1,2189 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2021-11-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/skus": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoint skus", - "description": "List streaming endpoint supported skus.", - "operationId": "StreamingEndpoints_Skus", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointSkuInfoListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List a streaming endpoint sku": { - "$ref": "examples/streamingendpoint-list-skus.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "type": "object", - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "type": "object", - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventInputAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "type": "object", - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The input endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "type": "object", - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "type": "object", - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "type": "object", - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p", - "PassthroughBasic", - "PassthroughStandard" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "This is the same as PassthroughStandard, please see description below. This enumeration value is being deprecated." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - }, - { - "value": "PassthroughBasic", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. In the PassthroughBasic mode, ingestion is limited to up to 5Mbps and only 1 concurrent live output is allowed. Live transcription is not available." - }, - { - "value": "PassthroughStandard", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. Live transcription is available. Ingestion bitrate limits are much higher and up to 3 concurrent live outputs are allowed." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "type": "object", - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "type": "object", - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "type": "object", - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - }, - "x-ms-identifiers": [] - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "type": "object", - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "type": "object", - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "type": "object", - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "x-ms-identifiers": [ - "language" - ], - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency", - "LowLatencyV2" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers." - }, - { - "value": "LowLatencyV2", - "description": "The live event is optimized for end to end latency. This option is only available for encoding live events with RTMP input. The outputs can be streamed using HLS or DASH formats. The outputs' archive or DVR rewind length is limited to 6 hours. Use \"LowLatency\" stream option for all other scenarios." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "type": "object", - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "x-ms-identifiers": [], - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "type": "object", - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "type": "object", - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "type": "object", - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointCurrentSku", - "description": "The streaming endpoint sku." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - }, - "ArmStreamingEndpointCurrentSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - }, - "capacity": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint sku capacity." - } - }, - "description": "The streaming endpoint current sku.", - "type": "object" - }, - "ArmStreamingEndpointSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - } - }, - "description": "The streaming endpoint sku.", - "type": "object" - }, - "ArmStreamingEndpointCapacity": { - "properties": { - "scaleType": { - "type": "string", - "readOnly": true - }, - "default": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint default capacity." - }, - "minimum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint minimum capacity." - }, - "maximum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint maximum capacity." - } - }, - "description": "The streaming endpoint sku capacity.", - "type": "object" - }, - "ArmStreamingEndpointSkuInfo": { - "properties": { - "resourceType": { - "type": "string" - }, - "capacity": { - "$ref": "#/definitions/ArmStreamingEndpointCapacity" - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointSku" - } - }, - "type": "object" - }, - "StreamingEndpointSkuInfoListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmStreamingEndpointSkuInfo" - }, - "x-ms-identifiers": [], - "description": "The result of the List StreamingEndpoint skus." - } - }, - "type": "object" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json deleted file mode 100644 index 37d7a1369e39..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "error": { - "code": "None", - "message": null, - "target": "d7aea790-8acb-40b9-8f9f-21cc37c9e519" - }, - "name": "62e4d893-d233-4005-988e-a428d9f77076", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json deleted file mode 100644 index 1522ade43e51..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json deleted file mode 100644 index 877eca1d65e0..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json deleted file mode 100644 index 5561429d828d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json deleted file mode 100644 index 8c848e4c9a92..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json deleted file mode 100644 index 4142074894d2..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json deleted file mode 100644 index 3119a218f464..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-08-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:08.3474032Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:08.3474032Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json deleted file mode 100644 index 1522ade43e51..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json deleted file mode 100644 index 1522ade43e51..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json deleted file mode 100644 index ac52130ccbfb..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json deleted file mode 100644 index 078de86ce432..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json deleted file mode 100644 index 35daf682629e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-08-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "rewindWindowLength": "PT4M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.9431835Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.9431835Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json deleted file mode 100644 index 3ce296653e0e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json deleted file mode 100644 index 4b6de0b82e7b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT5M", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index 817fe1b4e94e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT5M", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json deleted file mode 100644 index 0d083cb9b069..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-08-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT5M", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT5M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json deleted file mode 100644 index 131a1423fe9a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json deleted file mode 100644 index bbb49ae4be66..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index d61aa36df148..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index 12bbc6fecc5f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json deleted file mode 100644 index f314b375e7c4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "Microsoft.Media/mediaservices/streamingEndpoints", - "capacity": { - "scaleType": "Automatic", - "default": 1, - "minimum": 1, - "maximum": 10 - }, - "sku": { - "name": "Premium" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json deleted file mode 100644 index cb5424daae8d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-08-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.3500423Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.3500423Z" - }, - "sku": { - "name": "Premium", - "capacity": 1 - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json deleted file mode 100644 index d7c66985ffce..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json deleted file mode 100644 index ff947ee41c2f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json deleted file mode 100644 index ff947ee41c2f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json deleted file mode 100644 index 9b0cf0719a48..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-08-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-08-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/scenarios/StreamingTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/scenarios/StreamingTests.yaml deleted file mode 100644 index 1ce51dcc4b63..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/scenarios/StreamingTests.yaml +++ /dev/null @@ -1,138 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - assetName: - type: string - prefix: assetnam - liveEventName: - type: string - prefix: liveeven - operationId: - type: string - prefix: operatio - transformName: - type: string - prefix: transfor - streamingEndpointName: - type: string - prefix: streamin - filterName: - type: string - prefix: filterna - trackName: - type: string - prefix: tracknam - contentKeyPolicyName: - type: string - prefix: contentk - jobName: - type: string - prefix: jobname - streamingLocatorName: - type: string - prefix: streamin - name: - type: string - prefix: name - liveOutputName: - type: string - prefix: liveoutp - locationName: - type: string - prefix: location - streamingPolicyName: - type: string - prefix: streamin - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" - - step: CreateAccount - operationId: Mediaservices_CreateOrUpdate - exampleFile: ../../../../Accounts/stable/2021-11-01/examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - -scenarios: - - scenario: GeneratedScenario - steps: - - operationId: LiveEvents_Create - exampleFile: ../examples/liveevent-create.json - - operationId: LiveEvents_List - exampleFile: >- - ../examples/liveevent-list-all.json - - operationId: LiveEvents_Get - exampleFile: >- - ../examples/liveevent-list-by-name.json - - operationId: LiveEvents_Allocate - exampleFile: >- - ../examples/liveevent-allocate.json - - operationId: LiveEvents_Stop - exampleFile: ../examples/liveevent-stop.json - # disabling this test as it might take from 1 minutes to 30 minutes to complete - # - operationId: LiveEvents_Reset - # exampleFile: ../examples/liveevent-reset.json - # - operationId: LiveEvents_Start - # exampleFile: ../examples/liveevent-start.json - - operationId: StreamingEndpoints_Create - exampleFile: >- - ../examples/streamingendpoint-create.json - - operationId: StreamingEndpoints_Get - exampleFile: >- - ../examples/streamingendpoint-list-by-name.json - - operationId: StreamingEndpoints_List - exampleFile: >- - ../examples/streamingendpoint-list-all.json - - operationId: StreamingEndpoints_Skus - exampleFile: >- - ../examples/streamingendpoint-list-skus.json - - operationId: StreamingEndpoints_Scale - exampleFile: >- - ../examples/streamingendpoint-scale.json - - operationId: StreamingEndpoints_Stop - exampleFile: >- - ../examples/streamingendpoint-stop.json - # disabling this test as it might take from 1 minutes to 30 minutes to complete - # - operationId: StreamingEndpoints_Start - # exampleFile: >- - # ../examples/streamingendpoint-start.json - - operationId: Assets_CreateOrUpdate - exampleFile: ../../../../Metadata/stable/2022-08-01/examples/assets-create.json - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: LiveOutputs_Create - exampleFile: >- - ../examples/liveoutput-create.json - requestUpdate: - - replace: /parameters/properties/assetName - value: $(assetName) - - operationId: LiveOutputs_List - exampleFile: >- - ../examples/liveoutput-list-all.json - - operationId: LiveOutputs_Get - exampleFile: >- - ../examples/liveoutput-list-by-name.json - - operationId: LiveOutputs_Delete - exampleFile: >- - ../examples/liveoutput-delete.json - - operationId: StreamingEndpoints_Delete - exampleFile: >- - ../examples/streamingendpoint-delete.json - - operationId: LiveEvents_Delete - exampleFile: ../examples/liveevent-delete.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json deleted file mode 100644 index ee4fe7d72311..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json +++ /dev/null @@ -1,2518 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2022-08-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEventOperations/{operationId}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get operation status.", - "description": "Get a live event operation status.", - "operationId": "LiveEvents_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveEvent operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get operation status.", - "description": "Get a live event operation status.", - "operationId": "LiveEvents_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveEvent operation status": { - "$ref": "examples/liveevent-operation-location.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveOutputOperations/{operationId}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get operation status.", - "description": "Get a Live Output operation status.", - "operationId": "LiveOutputs_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveOutput operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get operation status.", - "description": "Get a Live Output operation status.", - "operationId": "LiveOutputs_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveOutput operation status": { - "$ref": "examples/liveoutput-operation-location.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/skus": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoint skus", - "description": "List streaming endpoint supported skus.", - "operationId": "StreamingEndpoints_Skus", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointSkuInfoListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List a streaming endpoint sku": { - "$ref": "examples/streamingendpoint-list-skus.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpointOperations/{operationId}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get operation status.", - "description": "Get a streaming endpoint operation status.", - "operationId": "StreamingEndpoints_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the streaming endpoint operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get operation status.", - "description": "Get a streaming endpoint operation status.", - "operationId": "StreamingEndpoints_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the streaming endpoint operation status": { - "$ref": "examples/streamingendpoint-operation-location.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "type": "object", - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "type": "object", - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "rewindWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventInputAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "type": "object", - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The input endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "type": "object", - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "type": "object", - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "type": "object", - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p", - "PassthroughBasic", - "PassthroughStandard" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "This is the same as PassthroughStandard, please see description below. This enumeration value is being deprecated." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - }, - { - "value": "PassthroughBasic", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. In the PassthroughBasic mode, ingestion is limited to up to 5Mbps and only 1 concurrent live output is allowed. Live transcription is not available." - }, - { - "value": "PassthroughStandard", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. Live transcription is available. Ingestion bitrate limits are much higher and up to 3 concurrent live outputs are allowed." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "type": "object", - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "type": "object", - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "type": "object", - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - }, - "x-ms-identifiers": [] - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "type": "object", - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "type": "object", - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "type": "object", - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "x-ms-identifiers": [ - "language" - ], - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency", - "LowLatencyV2" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers." - }, - { - "value": "LowLatencyV2", - "description": "The live event is optimized for end to end latency. This option is only available for encoding live events with RTMP input. The outputs can be streamed using HLS or DASH formats. The outputs' archive or DVR rewind length is limited to 6 hours. Use \"LowLatency\" stream option for all other scenarios." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "type": "object", - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "x-ms-identifiers": [], - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "type": "object", - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "type": "object", - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "type": "object", - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointCurrentSku", - "description": "The streaming endpoint sku." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - }, - "ArmStreamingEndpointCurrentSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - }, - "capacity": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint sku capacity." - } - }, - "description": "The streaming endpoint current sku.", - "type": "object" - }, - "ArmStreamingEndpointSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - } - }, - "description": "The streaming endpoint sku.", - "type": "object" - }, - "ArmStreamingEndpointCapacity": { - "properties": { - "scaleType": { - "type": "string", - "readOnly": true - }, - "default": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint default capacity." - }, - "minimum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint minimum capacity." - }, - "maximum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint maximum capacity." - } - }, - "description": "The streaming endpoint sku capacity.", - "type": "object" - }, - "ArmStreamingEndpointSkuInfo": { - "properties": { - "resourceType": { - "type": "string" - }, - "capacity": { - "$ref": "#/definitions/ArmStreamingEndpointCapacity" - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointSku" - } - }, - "type": "object" - }, - "StreamingEndpointSkuInfoListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmStreamingEndpointSkuInfo" - }, - "x-ms-identifiers": [], - "description": "The result of the List StreamingEndpoint skus." - } - }, - "type": "object" - }, - "AsyncOperationResult": { - "properties": { - "error": { - "description": "The error object", - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "name": { - "type": "string", - "description": "Operation Id of the async operation." - }, - "status": { - "description": "Operation status of the async operation.", - "type": "string", - "enum": [ - "Succeeded", - "Failed", - "InProgress" - ], - "x-ms-enum": { - "name": "AsyncOperationStatus", - "modelAsString": true - } - } - }, - "description": "The status of an async operation.", - "type": "object" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/async-operation-result.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/async-operation-result.json deleted file mode 100644 index dca50e77d40a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/async-operation-result.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "error": { - "code": "None", - "message": null, - "target": "d7aea790-8acb-40b9-8f9f-21cc37c9e519" - }, - "name": "62e4d893-d233-4005-988e-a428d9f77076", - "status": "InProgress" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-allocate.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-allocate.json deleted file mode 100644 index e35136ae7e0b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-allocate.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-create.json deleted file mode 100644 index cc8e35645047..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-create.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "input": { - "streamingProtocol": "RTMP", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "timedMetadataEndpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:06.0982751Z", - "lastModified": "2018-03-03T02:25:06.0982751Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "timedMetadataEndpoints": [] - }, - "preview": { - "previewLocator": "c91726b4-880c-4090-94aa-e6ddb1384b37", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-delete.json deleted file mode 100644 index d3b3284c8f19..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-delete.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "name": "myLiveEvent1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "endpoints": [], - "accessToken": null - }, - "preview": { - "endpoints": [], - "accessControl": { - "iP": { - "allow": [ - { - "nName": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "previewLocator": null, - "streamingPolicyName": null - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "provisioningState": null, - "resourceState": "Stopped", - "crossSiteAccessPolicies": null, - "useStaticHostname": false, - "streamOptions": [], - "created": "2018-03-02T18:25:07.5748853-08:00", - "lastModified": "2018-03-02T18:25:07.5748853-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-status.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-status.json deleted file mode 100644 index 2ae5daa5d730..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-status.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "state": "Stopped", - "healthStatus": "", - "healthDescriptions": [ - "No issues with ingest." - ], - "lastUpdatedTime": "2022-10-19T22:23:05.22Z", - "ingestion": { - "streamName": "myStream", - "begin": "2022-08-17T22:13:59.45Z", - "end": "2022-08-17T22:20:36.33Z", - "endReason": "MPE_CLIENT_TERMINATED_SESSION", - "ingestInterruptions": [ - { - "begin": "2022-08-17T22:14:32.33Z", - "end": "2022-08-17T22:15:33.22Z", - "duration": "PT1S", - "reason": "MPE_CLIENT_TERMINATED_SESSION" - } - ] - }, - "trackStatus": [ - { - "trackId": "audio_128000", - "expectedBitrate": 128000, - "incomingBitrate": null, - "ingestDrift": "", - "requestReceived": null, - "requestSucceeded": null - }, - { - "trackId": "video_2025000", - "expectedBitrate": 2025000, - "incomingBitrate": null, - "ingestDrift": "", - "requestReceived": null, - "requestSucceeded": null - } - ] - } - ] - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "304": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-stream-events.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-stream-events.json deleted file mode 100644 index 20ee23ef16c1..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-stream-events.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "eventType": "StreamEvent/BeginIngest", - "eventTime": "2022-10-19T22:13:59.33Z", - "eventLevel": "Information", - "data": { - "trackName": null, - "streamId": null, - "trackId": null, - "mediaType": null, - "bitrate": null, - "mediaTimestamp": null, - "timescale": null, - "previousFragmentTimestamp": null, - "previousFragmentDuration": null, - "currentFragmentTimestamp": null, - "fragmentOneTimestamp": null, - "fragmentOneDuration": null, - "fragmentTwoTimestamp": null, - "fragmentTwoDuration": null, - "fragmentDropReason": null, - "discontinuityGap": null, - "streamName": "myStream", - "resultCode": "S_OK", - "resultMessage": "{flashVer=Wirecast/FM 1.0 FMLE/3.0 (compatible; FMSc/1.0), cryptProtocol=TLS1.2}", - "duration": null, - "resolution": null, - "minTime": null, - "minTimeMediaType": null, - "maxTime": null, - "maxTimeMediaType": null, - "timescaleOfMinTime": null, - "timescaleOfMaxTime": null, - "remoteIp": "131.107.8.xxx", - "remotePort": "26919" - } - }, - { - "eventType": "StreamEvent/FirstChunkReceived", - "eventTime": "2022-10-19T22:14:04.45Z", - "eventLevel": "Information", - "data": { - "trackName": "audio_128000", - "streamId": null, - "trackId": null, - "mediaType": "audio", - "bitrate": 128000, - "mediaTimestamp": "1635238395", - "timescale": "1000", - "previousFragmentTimestamp": null, - "previousFragmentDuration": null, - "currentFragmentTimestamp": null, - "fragmentOneTimestamp": null, - "fragmentOneDuration": null, - "fragmentTwoTimestamp": null, - "fragmentTwoDuration": null, - "fragmentDropReason": null, - "discontinuityGap": null, - "streamName": null, - "resultCode": "S_OK", - "resultMessage": null, - "duration": "2391", - "resolution": null, - "minTime": null, - "minTimeMediaType": null, - "maxTime": null, - "maxTimeMediaType": null, - "timescaleOfMinTime": null, - "timescaleOfMaxTime": null, - "remoteIp": "131.107.8.xxx", - "remotePort": "26919" - } - }, - { - "eventType": "StreamEvent/FirstChunkReceived", - "eventTime": "2022-10-19T22:14:04.78Z", - "eventLevel": "Information", - "data": { - "trackName": "video_2025000", - "streamId": null, - "trackId": null, - "mediaType": "video", - "bitrate": 2025000, - "mediaTimestamp": "1635238372", - "timescale": "1000", - "previousFragmentTimestamp": null, - "previousFragmentDuration": null, - "currentFragmentTimestamp": null, - "fragmentOneTimestamp": null, - "fragmentOneDuration": null, - "fragmentTwoTimestamp": null, - "fragmentTwoDuration": null, - "fragmentDropReason": null, - "discontinuityGap": null, - "streamName": null, - "resultCode": "S_OK", - "resultMessage": null, - "duration": "2400", - "resolution": "1280x720", - "minTime": null, - "minTimeMediaType": null, - "maxTime": null, - "maxTimeMediaType": null, - "timescaleOfMinTime": null, - "timescaleOfMaxTime": null, - "remoteIp": "131.107.8.xxx", - "remotePort": "26919" - } - }, - { - "eventType": "StreamEvent/EndIngest", - "eventTime": "2022-10-19T22:20:36.45Z", - "eventLevel": "Information", - "data": { - "trackName": null, - "streamId": null, - "trackId": null, - "mediaType": null, - "bitrate": null, - "mediaTimestamp": null, - "timescale": null, - "previousFragmentTimestamp": null, - "previousFragmentDuration": null, - "currentFragmentTimestamp": null, - "fragmentOneTimestamp": null, - "fragmentOneDuration": null, - "fragmentTwoTimestamp": null, - "fragmentTwoDuration": null, - "fragmentDropReason": null, - "discontinuityGap": null, - "streamName": "myStream", - "resultCode": "MPE_CLIENT_TERMINATED_SESSION", - "resultMessage": "{connection=1, receivedBytes=104758568, acknowledgement=103917434}", - "duration": null, - "resolution": null, - "minTime": null, - "minTimeMediaType": null, - "maxTime": null, - "maxTimeMediaType": null, - "timescaleOfMinTime": null, - "timescaleOfMaxTime": null, - "remoteIp": "131.107.8.xxx", - "remotePort": "26919" - } - } - ] - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "304": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-track-events.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-track-events.json deleted file mode 100644 index 35c892f7133a..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-get-track-events.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "eventType": "TrackEvent/IngestHeartbeat", - "eventTime": "2022-10-19T22:14:52.33Z", - "data": { - "trackName": "audio", - "trackType": "audio", - "bitrate": 128000, - "incomingBitrate": 63496, - "lastTimestamp": "1635286785", - "timescale": "1000", - "overlapCount": 0, - "discontinuityCount": 0, - "nonincreasingCount": 0, - "unexpectedBitrate": true, - "state": "Running", - "healthy": null, - "lastFragmentArrivalTime": "2022-10-19T22:14:51.80Z", - "ingestDriftValue": "-1", - "transcriptionState": "", - "transcriptionLanguage": "" - } - }, - { - "eventType": "TrackEvent/IngestHeartbeat", - "eventTime": "2022-10-19T22:14:52.11Z", - "data": { - "trackName": "video", - "trackType": "video", - "bitrate": 2025000, - "incomingBitrate": 1622016, - "lastTimestamp": "1635286772", - "timescale": "1000", - "overlapCount": 0, - "discontinuityCount": 0, - "nonincreasingCount": 0, - "unexpectedBitrate": null, - "state": "Running", - "healthy": true, - "lastFragmentArrivalTime": "2022-10-19T22:14:51.80Z", - "ingestDriftValue": "-1", - "transcriptionState": "", - "transcriptionLanguage": "" - } - }, - { - "eventType": "TrackEvent/IngestHeartbeat", - "eventTime": "2022-10-19T22:15:12.90Z", - "data": { - "trackName": "audio", - "trackType": "audio", - "bitrate": 128000, - "incomingBitrate": 76705, - "lastTimestamp": "1635306777", - "timescale": "1000", - "overlapCount": 0, - "discontinuityCount": 0, - "nonincreasingCount": 0, - "unexpectedBitrate": null, - "state": "Running", - "healthy": true, - "lastFragmentArrivalTime": "2022-10-19T22:15:11.77Z", - "ingestDriftValue": "0", - "transcriptionState": "", - "transcriptionLanguage": "" - } - }, - { - "eventType": "TrackEvent/IngestHeartbeat", - "eventTime": "2022-10-19T22:15:12.88Z", - "data": { - "trackName": "video", - "trackType": "video", - "bitrate": 2025000, - "incomingBitrate": 1959936, - "lastTimestamp": "1635306772", - "timescale": "1000", - "overlapCount": 0, - "discontinuityCount": 0, - "nonincreasingCount": 0, - "unexpectedBitrate": null, - "state": "Running", - "healthy": true, - "lastFragmentArrivalTime": "2022-10-19T22:15:11.77Z", - "ingestDriftValue": "0", - "transcriptionState": "", - "transcriptionLanguage": "" - } - }, - { - "eventType": "TrackEvent/IngestHeartbeat", - "eventTime": "2022-10-19T22:15:32.77Z", - "data": { - "trackName": "audio", - "trackType": "audio", - "bitrate": 128000, - "incomingBitrate": 76736, - "lastTimestamp": "1635326793", - "timescale": "1000", - "overlapCount": 0, - "discontinuityCount": 0, - "nonincreasingCount": 0, - "unexpectedBitrate": null, - "state": "Running", - "healthy": true, - "lastFragmentArrivalTime": "2022-10-19T22:15:31.76Z", - "ingestDriftValue": "0", - "transcriptionState": "", - "transcriptionLanguage": "" - } - } - ] - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "304": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-all.json deleted file mode 100644 index 5a9273bcb864..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-all.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.5564064Z", - "lastModified": "2018-03-03T02:25:08.5564064Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "RTMP", - "accessToken": "", - "endpoints": [ - { - "protocol": "RTMP", - "url": "rtmp://clouddeployment.media-test.net:1935/live/de153bb0814542d9b7e2339ce9430dc4" - }, - { - "protocol": "RTMP", - "url": "rtmp://clouddeployment.media-test.net:1936/live/de153bb0814542d9b7e2339ce9430dc4" - }, - { - "protocol": "RTMP", - "url": "rtmps://clouddeployment.media-test.net:2935/live/de153bb0814542d9b7e2339ce9430dc4" - }, - { - "protocol": "RTMP", - "url": "rtmps://clouddeployment.media-test.net:2936/live/de153bb0814542d9b7e2339ce9430dc4" - } - ], - "timedMetadataEndpoints": [ - { - "url": "https://clouddeployment.media-test.net/de153bb0814542d9b7e2339ce9430dc4/ingest.isml/eventdata" - } - ] - }, - "preview": { - "previewLocator": "a220e223-faf8-4e03-b9a9-2c2432f48025", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://myliveevent1-slitestmedia10.preview-usso.channel.mediaservices.windows.net/a220e223-faf8-4e03-b9a9-2c2432f48025/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": null, - "crossDomainPolicy": null - } - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-by-name.json deleted file mode 100644 index b312cf2a1655..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-list-by-name.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ], - "timedMetadataEndpoints": [] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-operation-location.json deleted file mode 100644 index 03ac6a39024e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-operation-location.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-11-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:08.3474032Z", - "lastModified": "2018-03-03T02:25:08.3474032Z", - "useStaticHostname": false, - "streamOptions": [ - "Default" - ], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": null, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "http://clouddeployment.media-test.net/ingest.isml" - } - ], - "timedMetadataEndpoints": [] - }, - "preview": { - "previewLocator": "763f3ea4-d94f-441c-a634-c833f61a4e04", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowAll", - "address": "0.0.0.0", - "subnetPrefixLength": 0 - } - ] - } - }, - "endpoints": [ - { - "protocol": "FragmentedMP4", - "url": "https://testeventopito4idh2r-weibzmedia05.preview-ts051.channel.media-test.windows-int.net/763f3ea4-d94f-441c-a634-c833f61a4e04/preview.ism/manifest" - } - ] - }, - "encoding": { - "encodingType": "None", - "presetName": null - }, - "crossSiteAccessPolicies": { - "clientAccessPolicy": "", - "crossDomainPolicy": "" - } - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:08.3474032Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:08.3474032Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-reset.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-reset.json deleted file mode 100644 index e35136ae7e0b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-reset.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-start.json deleted file mode 100644 index e35136ae7e0b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-stop.json deleted file mode 100644 index 1954bd3fe2e7..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-stop.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01", - "parameters": { - "removeOutputsOnStop": false - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-update.json deleted file mode 100644 index 29df1918f18b..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveevent-update.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "input": { - "streamingProtocol": "FragmentedMP4", - "keyFrameIntervalDuration": "PT6S", - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - }, - "preview": { - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0" - } - ] - } - } - } - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - }, - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "InProgress", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "timedMetadataEndpoints": [] - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - }, - "200": { - "body": { - "name": "myLiveEvent1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1", - "type": "Microsoft.Media/mediaservices/liveevents", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2", - "tag3": "value3" - }, - "properties": { - "description": "test event updated", - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z", - "useStaticHostname": false, - "streamOptions": [], - "input": { - "keyFrameIntervalDuration": "PT6S", - "streamingProtocol": "FragmentedMP4", - "accessToken": "", - "endpoints": [], - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - } - }, - "preview": { - "previewLocator": "c10ea3fc-587f-4daf-b2b2-fa8f647a9ed2", - "streamingPolicyName": null, - "accessControl": { - "ip": { - "allow": [ - { - "name": "AllowOne", - "address": "192.1.1.0", - "subnetPrefixLength": null - } - ] - } - }, - "endpoints": [] - }, - "encoding": { - "encodingType": "None", - "presetName": null - } - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-create.json deleted file mode 100644 index 8c8e680a7322..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-create.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-11-01", - "parameters": { - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "rewindWindowLength": "PT4M", - "manifestName": "testmanifest", - "hls": { - "fragmentsPerTsSegment": 5 - } - } - } - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Stopped", - "provisioningState": "Succeeded", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.9431835Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" - } - } - }, - "201": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": "test live output 1", - "assetName": "6f3264f5-a189-48b4-a29a-a40f22575212", - "archiveWindowLength": "PT5M", - "manifestName": "testmanifest", - "outputSnapTime": 0, - "resourceState": "Creating", - "provisioningState": "InProgress", - "created": "2018-03-03T02:25:09.9431835Z", - "lastModified": "2018-03-03T02:25:09.9431835Z", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.9431835Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.9431835Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-delete.json deleted file mode 100644 index 5f1db2c19d41..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-delete.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveoutputoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-all.json deleted file mode 100644 index 7a00161e27af..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-all.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "liveoutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "95dafce4-5320-464c-8597-909373854119", - "archiveWindowLength": "PT5M", - "manifestName": "c3a23d4b-02a6-4937-a1ad-6416f463fdca", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-by-name.json deleted file mode 100644 index 295b3c299443..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-list-by-name.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT5M", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT4M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-operation-location.json deleted file mode 100644 index b7e9ae360f77..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/liveoutput-operation-location.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "liveEventName": "myLiveEvent1", - "liveOutputName": "myLiveOutput1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-11-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myLiveOutput1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/liveoutputs/myLiveOutput1", - "type": "Microsoft.Media/mediaservices/liveevents/liveoutputs", - "properties": { - "description": null, - "assetName": "cb2ae0bc-677a-4830-9c8e-06ce4c4cb607", - "archiveWindowLength": "PT5M", - "manifestName": "fc7096f5-c488-4b86-8302-f3bfde53fc27", - "outputSnapTime": 0, - "resourceState": "Running", - "provisioningState": "Succeeded", - "created": "0001-01-01T00:00:00-08:00", - "lastModified": "0001-01-01T00:00:00-08:00", - "hls": { - "fragmentsPerTsSegment": 5 - }, - "rewindWindowLength": "PT5M" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "0001-01-01T00:00:00-08:00", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "0001-01-01T00:00:00-08:00" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-create.json deleted file mode 100644 index 0df852519fb6..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-create.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2029-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2030-12-31T16:00:00-08:00", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1" - } - ] - } - }, - "cdnEnabled": false - } - } - }, - "responses": { - "201": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Creating", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - }, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "accessControl": { - "akamai": { - "akamaiSignatureHeaderAuthenticationKeyList": [ - { - "identifier": "id1", - "expiration": "2030-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - }, - { - "identifier": "id2", - "expiration": "2031-01-01T00:00:00Z", - "base64Key": "dGVzdGlkMQ==" - } - ] - }, - "ip": { - "allow": [ - { - "name": "AllowedIp", - "address": "192.168.1.1", - "subnetPrefixLength": null - } - ] - } - }, - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.7561389Z", - "lastModified": "2018-03-03T02:25:09.7561389Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-delete.json deleted file mode 100644 index 897e1129e062..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-delete.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01", - "parameters": { - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "name": "myStreamingEndpoint1", - "type": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourcegroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints", - "location": "West US", - "tags": { - "dynamicProperties": { - "tag1": "value1", - "tag2": "value2" - } - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "accessControl": null, - "availabilitySetName": "availableset", - "maxCacheAge": null, - "crossSiteAccessPolicies": null, - "customHostNames": [], - "hostName": null, - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": null, - "resourceState": "Stopped", - "created": "2018-03-02T18:25:09.4897514-08:00", - "lastModified": "2018-03-02T18:25:09.4897514-08:00" - } - } - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {}, - "204": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-all.json deleted file mode 100644 index 842e3809f66e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-all.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.202013Z", - "lastModified": "2018-03-03T02:25:09.202013Z" - } - }, - { - "name": "default", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/default", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": {}, - "properties": { - "description": "", - "scaleUnits": 0, - "availabilitySetName": null, - "cdnEnabled": true, - "cdnProvider": "StandardVerizon", - "cdnProfile": "AzureMediaStreamingPlatformCdnProfile-StandardVerizon", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T00:00:00-08:00", - "provisioningState": "InProgress", - "resourceState": "Starting", - "created": "2018-03-03T02:25:09.2310128Z", - "lastModified": "2018-03-03T02:25:09.2310128Z" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-by-name.json deleted file mode 100644 index d792524e5f93..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-by-name.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-skus.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-skus.json deleted file mode 100644 index 8c5159c27a6e..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-list-skus.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "resourceType": "Microsoft.Media/mediaservices/streamingEndpoints", - "capacity": { - "scaleType": "Automatic", - "default": 1, - "minimum": 1, - "maximum": 10 - }, - "sku": { - "name": "Premium" - } - } - ] - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-operation-location.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-operation-location.json deleted file mode 100644 index 6ff4b1a39b54..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-operation-location.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "operationId": "62e4d893-d233-4005-988e-a428d9f77076", - "api-version": "2022-11-01" - }, - "responses": { - "202": {}, - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "description": "test event 1", - "scaleUnits": 1, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": "", - "customHostNames": [], - "maxCacheAge": null, - "hostName": "mystreamingendpoint1-slitestmedia10.streaming.mediaservices.windows.net", - "freeTrialEndTime": "0001-01-01T08:00:00Z", - "provisioningState": "Succeeded", - "resourceState": "Stopped", - "created": "2018-03-03T02:25:09.3500423Z", - "lastModified": "2018-03-03T02:25:09.3500423Z" - }, - "systemData": { - "createdBy": "example@microsoft.com", - "createdByType": "User", - "createdAt": "2018-03-03T02:25:09.3500423Z", - "lastModifiedBy": "example@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2018-03-03T02:25:09.3500423Z" - }, - "sku": { - "name": "Premium", - "capacity": 1 - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-scale.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-scale.json deleted file mode 100644 index 89db38581ee5..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-scale.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01", - "parameters": { - "scaleUnit": 5 - } - }, - "responses": { - "200": {}, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-start.json deleted file mode 100644 index 0ced4a6368ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-start.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-stop.json deleted file mode 100644 index 0ced4a6368ab..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-stop.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01" - }, - "responses": { - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - } - }, - "200": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-update.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-update.json deleted file mode 100644 index a55d6ee52b39..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/examples/streamingendpoint-update.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "parameters": { - "subscriptionId": "0a6ec948-5a62-437d-b9df-934dc7c1b722", - "resourceGroupName": "mediaresources", - "accountName": "slitestmedia10", - "streamingEndpointName": "myStreamingEndpoint1", - "api-version": "2022-11-01", - "parameters": { - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset" - } - } - }, - "responses": { - "200": { - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - }, - "202": { - "headers": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpointoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01", - "location": "https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01" - }, - "body": { - "name": "myStreamingEndpoint1", - "id": "/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/streamingendpoints/myStreamingEndpoint1", - "type": "Microsoft.Media/mediaservices/streamingEndpoints", - "location": "West US", - "tags": { - "tag3": "value3", - "tag5": "value5" - }, - "properties": { - "description": "test event 2", - "scaleUnits": 5, - "availabilitySetName": "availableset", - "cdnEnabled": false, - "cdnProvider": null, - "cdnProfile": null, - "customHostNames": [], - "maxCacheAge": null, - "hostName": null, - "freeTrialEndTime": "0001-01-01T00:00:00Z", - "provisioningState": "Succeeded", - "resourceState": null, - "created": "0001-01-01T00:00:00Z", - "lastModified": "0001-01-01T00:00:00Z" - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/scenarios/StreamingTests.yaml b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/scenarios/StreamingTests.yaml deleted file mode 100644 index 46e62fee1dee..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/scenarios/StreamingTests.yaml +++ /dev/null @@ -1,147 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/documentation/api-scenario/references/v1.2/schema.json -scope: ResourceGroup -variables: - accountName: - type: string - prefix: accountn - assetName: - type: string - prefix: assetnam - liveEventName: - type: string - prefix: liveeven - operationId: - type: string - prefix: operatio - transformName: - type: string - prefix: transfor - streamingEndpointName: - type: string - prefix: streamin - filterName: - type: string - prefix: filterna - trackName: - type: string - prefix: tracknam - contentKeyPolicyName: - type: string - prefix: contentk - jobName: - type: string - prefix: jobname - streamingLocatorName: - type: string - prefix: streamin - name: - type: string - prefix: name - liveOutputName: - type: string - prefix: liveoutp - locationName: - type: string - prefix: location - streamingPolicyName: - type: string - prefix: streamin - testStorageAccount: - type: string - prefix: teststorageaccount -prepareSteps: - - step: CreateStorageAccount - operationId: StorageAccounts_Create - readmeTag: ../../../../../../../storage/resource-manager/readme.md - parameters: - accountName: $(testStorageAccount) - parameters: - kind: StorageV2 - location: $(location) - sku: - name: Standard_LRS - tier: "Standard" - - step: CreateAccount - operationId: Mediaservices_CreateOrUpdate - exampleFile: ../../../../Accounts/stable/2021-11-01/examples/async-accounts-create.json - requestUpdate: - - replace: /parameters/properties/storageAccounts/0/id - value: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Storage/storageAccounts/$(testStorageAccount) - -scenarios: - - scenario: GeneratedScenario - steps: - - operationId: LiveEvents_Create - exampleFile: ../examples/liveevent-create.json - - operationId: LiveEvents_List - exampleFile: >- - ../examples/liveevent-list-all.json - - operationId: LiveEvents_Get - exampleFile: >- - ../examples/liveevent-list-by-name.json - - operationId: LiveEvents_Allocate - exampleFile: >- - ../examples/liveevent-allocate.json - - operationId: LiveEvents_ListGetStatus - exampleFile: >- - ../examples/liveevent-get-status.json - - operationId: LiveEvents_ListGetStreamEvents - exampleFile: >- - ../examples/liveevent-get-stream-events.json - - operationId: LiveEvents_ListGetTrackIngestHeartbeats - exampleFile: >- - ../examples/liveevent-get-track-events.json - - operationId: LiveEvents_Stop - exampleFile: ../examples/liveevent-stop.json - # disabling this test as it might take from 1 minutes to 30 minutes to complete - # - operationId: LiveEvents_Reset - # exampleFile: ../examples/liveevent-reset.json - # - operationId: LiveEvents_Start - # exampleFile: ../examples/liveevent-start.json - - operationId: StreamingEndpoints_Create - exampleFile: >- - ../examples/streamingendpoint-create.json - - operationId: StreamingEndpoints_Get - exampleFile: >- - ../examples/streamingendpoint-list-by-name.json - - operationId: StreamingEndpoints_List - exampleFile: >- - ../examples/streamingendpoint-list-all.json - - operationId: StreamingEndpoints_Skus - exampleFile: >- - ../examples/streamingendpoint-list-skus.json - - operationId: StreamingEndpoints_Scale - exampleFile: >- - ../examples/streamingendpoint-scale.json - - operationId: StreamingEndpoints_Stop - exampleFile: >- - ../examples/streamingendpoint-stop.json - # disabling this test as it might take from 1 minutes to 30 minutes to complete - # - operationId: StreamingEndpoints_Start - # exampleFile: >- - # ../examples/streamingendpoint-start.json - - operationId: Assets_CreateOrUpdate - exampleFile: ../../../../Metadata/stable/2022-08-01/examples/assets-create.json - requestUpdate: - - replace: /parameters/properties/storageAccountName - value: $(testStorageAccount) - - operationId: LiveOutputs_Create - exampleFile: >- - ../examples/liveoutput-create.json - requestUpdate: - - replace: /parameters/properties/assetName - value: $(assetName) - - operationId: LiveOutputs_List - exampleFile: >- - ../examples/liveoutput-list-all.json - - operationId: LiveOutputs_Get - exampleFile: >- - ../examples/liveoutput-list-by-name.json - - operationId: LiveOutputs_Delete - exampleFile: >- - ../examples/liveoutput-delete.json - - operationId: StreamingEndpoints_Delete - exampleFile: >- - ../examples/streamingendpoint-delete.json - - operationId: LiveEvents_Delete - exampleFile: ../examples/liveevent-delete.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json b/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json deleted file mode 100644 index a5f9248116e4..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json +++ /dev/null @@ -1,3301 +0,0 @@ -{ - "schemes": [ - "https" - ], - "swagger": "2.0", - "info": { - "title": "Azure Media Services", - "description": "Live event and streaming endpoint management APIs", - "version": "2022-11-01" - }, - "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" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "List live events", - "description": "Lists all the live events in the account.", - "operationId": "LiveEvents_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveEvents": { - "$ref": "examples/liveevent-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get Live Event", - "description": "Gets properties of a live event.", - "operationId": "LiveEvents_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveEvent by name": { - "$ref": "examples/liveevent-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveEvents" - ], - "summary": "Create Live Event", - "description": "Creates a new live event.", - "operationId": "LiveEvents_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Live event properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveEvent": { - "$ref": "examples/liveevent-create.json" - } - } - }, - "patch": { - "tags": [ - "LiveEvents" - ], - "description": "Updates settings on an existing live event.", - "operationId": "LiveEvents_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live event properties needed for patch.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEvent" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a LiveEvent": { - "$ref": "examples/liveevent-update.json" - } - } - }, - "delete": { - "tags": [ - "LiveEvents" - ], - "summary": "Delete Live Event", - "description": "Deletes a live event.", - "operationId": "LiveEvents_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live event was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveEvent": { - "$ref": "examples/liveevent-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Allocate resources for a live event", - "description": "A live event is in StandBy state after allocation completes, and is ready to start.", - "operationId": "LiveEvents_Allocate", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Allocate a LiveEvent": { - "$ref": "examples/liveevent-allocate.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Start Live Event", - "description": "A live event in Stopped or StandBy state will be in Running state after the start operation completes.", - "operationId": "LiveEvents_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a LiveEvent": { - "$ref": "examples/liveevent-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Stop Live Event", - "description": "Stops a running live event.", - "operationId": "LiveEvents_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "LiveEvent stop parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveEventActionInput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a LiveEvent": { - "$ref": "examples/liveevent-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Reset Live Event", - "description": "Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected. ", - "operationId": "LiveEvents_Reset", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Reset a LiveEvent": { - "$ref": "examples/liveevent-reset.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/getStatus": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Get status of one live event", - "description": "Gets status telemetry of a live event.", - "operationId": "LiveEvents_ListGetStatus", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventGetStatusResult" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "headers": { - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "304": { - "description": "Not Modified. The eTag in the request header is the same as the eTag in the storage container." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Get status of a LiveEvent": { - "$ref": "examples/liveevent-get-status.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/getStreamEvents": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Get stream events of one live event", - "description": "Get stream events telemetry of a live event.", - "operationId": "LiveEvents_ListGetStreamEvents", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventGetStreamEventsResult" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "headers": { - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "304": { - "description": "Not Modified. The eTag in the request header is the same as the eTag in the storage container." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Get stream events of a LiveEvent": { - "$ref": "examples/liveevent-get-stream-events.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/getTrackIngestHeartbeats": { - "post": { - "tags": [ - "LiveEvents" - ], - "summary": "Get track events of one live event", - "description": "Get track ingest heartbeat events telemetry of a live event.", - "operationId": "LiveEvents_ListGetTrackIngestHeartbeats", - "x-ms-pageable": { - "nextLinkName": null - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEventGetTrackIngestHeartbeatsResult" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "headers": { - "Location": { - "description": "The URI to poll for completion status.", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, - "304": { - "description": "Not Modified. The eTag in the request header is the same as the eTag in the storage container." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Get track ingest heart beats of a LiveEvent": { - "$ref": "examples/liveevent-get-track-events.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEventOperations/{operationId}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get operation status.", - "description": "Get a live event operation status.", - "operationId": "LiveEvents_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveEvent operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "LiveEvents" - ], - "summary": "Get operation status.", - "description": "Get a live event operation status.", - "operationId": "LiveEvents_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveEvent" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveEvent operation status": { - "$ref": "examples/liveevent-operation-location.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "List Live Outputs", - "description": "Lists the live outputs of a live event.", - "operationId": "LiveOutputs_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutputListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all LiveOutputs": { - "$ref": "examples/liveoutput-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get Live Output", - "description": "Gets a live output.", - "operationId": "LiveOutputs_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a LiveOutput by name": { - "$ref": "examples/liveoutput-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "LiveOutputs" - ], - "summary": "Create Live Output", - "description": "Creates a new live output.", - "operationId": "LiveOutputs_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Live Output properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/LiveOutput" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a LiveOutput": { - "$ref": "examples/liveoutput-create.json" - } - } - }, - "delete": { - "tags": [ - "LiveOutputs" - ], - "summary": "Delete Live Output", - "description": "Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.", - "operationId": "LiveOutputs_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the live output was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a LiveOutput": { - "$ref": "examples/liveoutput-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveOutputOperations/{operationId}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get operation status.", - "description": "Get a Live Output operation status.", - "operationId": "LiveOutputs_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveOutput operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "LiveOutputs" - ], - "summary": "Get operation status.", - "description": "Get a Live Output operation status.", - "operationId": "LiveOutputs_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/LiveEventName" - }, - { - "$ref": "#/parameters/LiveOutputName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/LiveOutput" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the LiveOutput operation status": { - "$ref": "examples/liveoutput-operation-location.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoints", - "description": "Lists the streaming endpoints in the account.", - "operationId": "StreamingEndpoints_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "@odata.nextLink" - }, - "x-ms-examples": { - "List all streaming endpoints": { - "$ref": "examples/streamingendpoint-list-all.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get StreamingEndpoint", - "description": "Gets a streaming endpoint.", - "operationId": "StreamingEndpoints_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get a streaming endpoint by name": { - "$ref": "examples/streamingendpoint-list-by-name.json" - } - } - }, - "put": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Create StreamingEndpoint", - "description": "Creates a streaming endpoint.", - "operationId": "StreamingEndpoints_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/StreamingResourceAutoStart" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "201": { - "description": "Created. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on monitoring asynchronous Azure operations using the Azure-AsyncOperation response header.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Create a streaming endpoint": { - "$ref": "examples/streamingendpoint-create.json" - } - } - }, - "patch": { - "tags": [ - "StreamingEndpoint" - ], - "summary": "Update StreamingEndpoint", - "description": "Updates a existing streaming endpoint.", - "operationId": "StreamingEndpoints_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint properties needed for creation.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Update a streaming endpoint": { - "$ref": "examples/streamingendpoint-update.json" - } - } - }, - "delete": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Delete StreamingEndpoint", - "description": "Deletes a streaming endpoint.", - "operationId": "StreamingEndpoints_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "204": { - "description": "No content. The request has been accepted but the Streaming Endpoint was not found." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a streaming endpoint": { - "$ref": "examples/streamingendpoint-delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/skus": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "List StreamingEndpoint skus", - "description": "List streaming endpoint supported skus.", - "operationId": "StreamingEndpoints_Skus", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpointSkuInfoListResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List a streaming endpoint sku": { - "$ref": "examples/streamingendpoint-list-skus.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/start": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Start StreamingEndpoint", - "description": "Starts an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Start", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Start a streaming endpoint": { - "$ref": "examples/streamingendpoint-start.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/stop": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Stop StreamingEndpoint", - "description": "Stops an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Stop", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Stop a streaming endpoint": { - "$ref": "examples/streamingendpoint-stop.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/scale": { - "post": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Scale StreamingEndpoint", - "description": "Scales an existing streaming endpoint.", - "operationId": "StreamingEndpoints_Scale", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "name": "parameters", - "description": "Streaming endpoint scale parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StreamingEntityScaleUnit" - } - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Scale a StreamingEndpoint": { - "$ref": "examples/streamingendpoint-scale.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpointOperations/{operationId}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get operation status.", - "description": "Get a streaming endpoint operation status.", - "operationId": "StreamingEndpoints_AsyncOperation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/AsyncOperationResult" - } - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the streaming endpoint operation status": { - "$ref": "examples/async-operation-result.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/streamingEndpoints/{streamingEndpointName}/operationLocations/{operationId}": { - "get": { - "tags": [ - "StreamingEndpoints" - ], - "summary": "Get operation status.", - "description": "Get a streaming endpoint operation status.", - "operationId": "StreamingEndpoints_OperationLocation", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionId" - }, - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/MediaServicesAccountName" - }, - { - "$ref": "#/parameters/StreamingEndpointName" - }, - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/OperationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersion" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/StreamingEndpoint" - } - }, - "202": { - "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously. See https://go.microsoft.com/fwlink/?linkid=2087017 for details on the monitoring asynchronous Azure Operations." - }, - "default": { - "description": "The streaming error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get the streaming endpoint operation status": { - "$ref": "examples/streamingendpoint-operation-location.json" - } - } - } - } - }, - "definitions": { - "Hls": { - "type": "object", - "properties": { - "fragmentsPerTsSegment": { - "format": "int32", - "type": "integer", - "description": "The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live event. This value does not affect the packing ratio for HLS CMAF output." - } - }, - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "LiveOutputProperties": { - "type": "object", - "required": [ - "assetName", - "archiveWindowLength" - ], - "properties": { - "description": { - "type": "string", - "description": "The description of the live output." - }, - "assetName": { - "type": "string", - "description": "The asset that the live output will write to." - }, - "archiveWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window." - }, - "rewindWindowLength": { - "format": "duration", - "type": "string", - "description": "ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL." - }, - "manifestName": { - "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." - }, - "hls": { - "type": "object", - "$ref": "#/definitions/Hls", - "description": "HTTP Live Streaming (HLS) packing setting for the live output." - }, - "outputSnapTime": { - "type": "integer", - "format": "int64", - "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time the live output." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The time the live output was last modified." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live output." - }, - "resourceState": { - "description": "The resource state of the live output.", - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Running", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveOutputResourceState", - "values": [ - { - "value": "Creating", - "description": "Live output is being created. No content is archived in the asset until the live output is in running state." - }, - { - "value": "Running", - "description": "Live output is running and archiving live streaming content to the asset if there is valid input from a contribution encoder." - }, - { - "value": "Deleting", - "description": "Live output is being deleted. The live asset is being converted from live to on-demand asset. Any streaming URLs created on the live output asset continue to work." - } - ], - "modelAsString": true - } - } - }, - "description": "The JSON object that contains the properties required to create a live output." - }, - "LiveOutput": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveOutputProperties", - "description": "Live output properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" - } - ], - "description": "The Live Output." - }, - "LiveOutputListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveOutput" - }, - "description": "The result of the List LiveOutput operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveOutput list result.", - "title": "LiveOutputListResult" - }, - "LiveEventEndpoint": { - "type": "object", - "properties": { - "protocol": { - "type": "string", - "description": "The endpoint protocol." - }, - "url": { - "type": "string", - "description": "The endpoint URL." - } - }, - "description": "The live event endpoint." - }, - "LiveEventTimedMetadataEndpoint": { - "properties": { - "url": { - "type": "string", - "description": "The metadata endpoint URL." - } - }, - "type": "object", - "description": "The live event metadata insertion endpoint." - }, - "LiveEventInputAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for live event input." - }, - "LiveEventInput": { - "type": "object", - "required": [ - "streamingProtocol" - ], - "properties": { - "streamingProtocol": { - "type": "string", - "description": "The input protocol for the live event. This is specified at creation time and cannot be updated.", - "enum": [ - "FragmentedMP4", - "RTMP" - ], - "x-ms-enum": { - "name": "LiveEventInputProtocol", - "values": [ - { - "value": "FragmentedMP4", - "description": "Smooth Streaming input will be sent by the contribution encoder to the live event." - }, - { - "value": "RTMP", - "description": "RTMP input will be sent by the contribution encoder to the live event." - } - ], - "modelAsString": true - } - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventInputAccessControl", - "description": "Access control for live event input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 time duration of the key frame interval duration of the input. This value sets the EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds. Leave the value empty for encoding live events." - }, - "accessToken": { - "type": "string", - "description": "A UUID in string form to uniquely identify the stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value." - }, - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The input endpoints for the live event." - }, - "timedMetadataEndpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTimedMetadataEndpoint" - }, - "x-ms-identifiers": [], - "description": "The metadata endpoints for the live event." - } - }, - "description": "The live event input." - }, - "IPRange": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, - "address": { - "type": "string", - "description": "The IP address." - }, - "subnetPrefixLength": { - "format": "int32", - "type": "integer", - "description": "The subnet mask prefix length (see CIDR notation)." - } - }, - "description": "The IP address range in the CIDR scheme." - }, - "IPAccessControl": { - "type": "object", - "properties": { - "allow": { - "type": "array", - "items": { - "$ref": "#/definitions/IPRange" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The IP allow list." - } - }, - "description": "The IP access control." - }, - "LiveEventPreviewAccessControl": { - "type": "object", - "properties": { - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control properties." - } - }, - "description": "The IP access control for the live event preview endpoint." - }, - "LiveEventPreview": { - "type": "object", - "properties": { - "endpoints": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - }, - "x-ms-identifiers": [], - "description": "The endpoints for preview. Do not share the preview URL with the live event audience." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/LiveEventPreviewAccessControl", - "description": "The access control for live event preview." - }, - "previewLocator": { - "type": "string", - "description": "The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created." - }, - "streamingPolicyName": { - "type": "string", - "description": "The name of streaming policy used for the live event preview. This value is specified at creation time and cannot be updated." - }, - "alternativeMediaId": { - "type": "string", - "description": "An alternative media identifier associated with the streaming locator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field." - } - }, - "description": "Live event preview settings." - }, - "LiveEventEncoding": { - "type": "object", - "properties": { - "encodingType": { - "type": "string", - "description": "Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created.", - "enum": [ - "None", - "Standard", - "Premium1080p", - "PassthroughBasic", - "PassthroughStandard" - ], - "x-ms-enum": { - "name": "LiveEventEncodingType", - "values": [ - { - "value": "None", - "description": "This is the same as PassthroughStandard, please see description below. This enumeration value is being deprecated." - }, - { - "value": "Standard", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution." - }, - { - "value": "Premium1080p", - "description": "A contribution live encoder sends a single bitrate stream to the live event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution." - }, - { - "value": "PassthroughBasic", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. In the PassthroughBasic mode, ingestion is limited to up to 5Mbps and only 1 concurrent live output is allowed. Live transcription is not available." - }, - { - "value": "PassthroughStandard", - "description": "The ingested stream passes through the live event from the contribution encoder without any further processing. Live transcription is available. Ingestion bitrate limits are much higher and up to 3 concurrent live outputs are allowed." - } - ], - "modelAsString": true - } - }, - "presetName": { - "type": "string", - "description": "The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’." - }, - "stretchMode": { - "type": "string", - "enum": [ - "None", - "AutoSize", - "AutoFit" - ], - "x-ms-enum": { - "name": "StretchMode", - "values": [ - { - "value": "None", - "description": "Strictly respects the output resolution specified in the encoding preset without considering the pixel aspect ratio or display aspect ratio of the input video." - }, - { - "value": "AutoSize", - "description": "Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9." - }, - { - "value": "AutoFit", - "description": "Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right." - } - ], - "modelAsString": true - }, - "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None" - }, - "keyFrameInterval": { - "type": "string", - "format": "duration", - "description": "Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events." - } - }, - "description": "Specifies the live event type and optional encoding settings for encoding live events." - }, - "LiveEventInputTrackSelection": { - "type": "object", - "properties": { - "property": { - "type": "string", - "description": "Property name to select. This property is reserved for future use, any value set on this property will be ignored." - }, - "operation": { - "type": "string", - "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." - }, - "value": { - "type": "string", - "description": "Property value to select. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "A track selection condition. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventOutputTranscriptionTrack": { - "type": "object", - "required": [ - "trackName" - ], - "properties": { - "trackName": { - "type": "string", - "description": "The output track name. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "LiveEventTranscription": { - "type": "object", - "properties": { - "language": { - "type": "string", - "description": "Specifies the language (locale) to be used for speech-to-text transcription – it should match the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature and the list of supported languages." - }, - "inputTrackSelection": { - "type": "array", - "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied. This property is reserved for future use, any value set on this property will be ignored.", - "items": { - "$ref": "#/definitions/LiveEventInputTrackSelection" - }, - "x-ms-identifiers": [] - }, - "outputTranscriptionTrack": { - "type": "object", - "$ref": "#/definitions/LiveEventOutputTranscriptionTrack", - "description": "Describes a transcription track in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - } - }, - "description": "Describes the transcription tracks in the output of a live event, generated using speech-to-text transcription. This property is reserved for future use, any value set on this property will be ignored." - }, - "CrossSiteAccessPolicies": { - "type": "object", - "properties": { - "clientAccessPolicy": { - "type": "string", - "description": "The content of clientaccesspolicy.xml used by Silverlight." - }, - "crossDomainPolicy": { - "type": "string", - "description": "The content of crossdomain.xml used by Silverlight." - } - }, - "description": "The client access policy." - }, - "LiveEventActionInput": { - "type": "object", - "properties": { - "removeOutputsOnStop": { - "type": "boolean", - "description": "The flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting live outputs do not delete the underlying assets." - } - }, - "description": "The LiveEvent action input parameter definition." - }, - "LiveEventProperties": { - "type": "object", - "required": [ - "input" - ], - "properties": { - "description": { - "type": "string", - "description": "A description for the live event." - }, - "input": { - "type": "object", - "$ref": "#/definitions/LiveEventInput", - "description": "Live event input settings. It defines how the live event receives input from a contribution encoder." - }, - "preview": { - "type": "object", - "$ref": "#/definitions/LiveEventPreview", - "description": "Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output." - }, - "encoding": { - "type": "object", - "$ref": "#/definitions/LiveEventEncoding", - "description": "Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used." - }, - "transcriptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTranscription" - }, - "x-ms-identifiers": [ - "language" - ], - "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the live event." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Allocating", - "StandBy", - "Starting", - "Running", - "Stopping", - "Deleting" - ], - "x-ms-enum": { - "name": "LiveEventResourceState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Allocating", - "description": "Allocate action was called on the live event and resources are being provisioned for this live event. Once allocation completes successfully, the live event will transition to StandBy state." - }, - { - "value": "StandBy", - "description": "Live event resources have been provisioned and is ready to start. Billing occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed during this state." - }, - { - "value": "Starting", - "description": "The live event is being started and resources are being allocated. No billing occurs in this state. Updates or streaming are not allowed during this state. If an error occurs, the live event returns to the Stopped state." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - }, - { - "value": "Stopping", - "description": "The live event is being stopped and resources are being de-provisioned. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - }, - { - "value": "Deleting", - "description": "The live event is being deleted. No billing occurs in this transient state. Updates or streaming are not allowed during this state." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "Live event cross site access policies." - }, - "useStaticHostname": { - "type": "boolean", - "description": "Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state" - }, - "hostnamePrefix": { - "type": "string", - "description": "When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center." - }, - "streamOptions": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Default", - "LowLatency", - "LowLatencyV2" - ], - "x-ms-enum": { - "name": "StreamOptionsFlag", - "values": [ - { - "value": "Default", - "description": "Live streaming with no special latency optimizations." - }, - { - "value": "LowLatency", - "description": "The live event provides lower end to end latency by reducing its internal buffers." - }, - { - "value": "LowLatencyV2", - "description": "The live event is optimized for end to end latency. This option is only available for encoding live events with RTMP input. The outputs can be streamed using HLS or DASH formats. The outputs' archive or DVR rewind length is limited to 6 hours. Use \"LowLatency\" stream option for all other scenarios." - } - ], - "modelAsString": true - } - }, - "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The creation time for the live event" - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The last modified time of the live event." - } - }, - "description": "The live event properties." - }, - "LiveEvent": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/LiveEventProperties", - "description": "The live event properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The live event." - }, - "LiveEventListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEvent" - }, - "description": "The result of the List Live Event operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of live outputs." - } - }, - "description": "The LiveEvent list result.", - "title": "LiveEventListResult" - }, - "AkamaiSignatureHeaderAuthenticationKey": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, - "base64Key": { - "type": "string", - "description": "authentication key" - }, - "expiration": { - "format": "date-time", - "type": "string", - "description": "The expiration time of the authentication key." - } - }, - "description": "Akamai Signature Header authentication key." - }, - "AkamaiAccessControl": { - "type": "object", - "properties": { - "akamaiSignatureHeaderAuthenticationKeyList": { - "type": "array", - "items": { - "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" - }, - "x-ms-identifiers": [], - "description": "authentication key list" - } - }, - "description": "Akamai access control" - }, - "StreamingEndpointAccessControl": { - "type": "object", - "properties": { - "akamai": { - "type": "object", - "$ref": "#/definitions/AkamaiAccessControl", - "description": "The access control of Akamai" - }, - "ip": { - "type": "object", - "$ref": "#/definitions/IPAccessControl", - "description": "The IP access control of the streaming endpoint." - } - }, - "description": "Streaming endpoint access control definition." - }, - "StreamingEntityScaleUnit": { - "type": "object", - "properties": { - "scaleUnit": { - "type": "integer", - "format": "int32", - "description": "The scale unit number of the streaming endpoint." - } - }, - "description": "scale units definition" - }, - "StreamingEndpointProperties": { - "type": "object", - "required": [ - "scaleUnits" - ], - "properties": { - "description": { - "type": "string", - "description": "The streaming endpoint description." - }, - "scaleUnits": { - "type": "integer", - "format": "int32", - "description": "The number of scale units. Use the Scale operation to adjust this value." - }, - "availabilitySetName": { - "type": "string", - "description": "This feature is deprecated, do not set a value for this property." - }, - "accessControl": { - "type": "object", - "$ref": "#/definitions/StreamingEndpointAccessControl", - "description": "The access control definition of the streaming endpoint." - }, - "maxCacheAge": { - "type": "integer", - "format": "int64", - "description": "Max cache age" - }, - "customHostNames": { - "type": "array", - "items": { - "type": "string", - "description": "custom host name" - }, - "description": "The custom host names of the streaming endpoint" - }, - "hostName": { - "readOnly": true, - "type": "string", - "description": "The streaming endpoint host name." - }, - "cdnEnabled": { - "type": "boolean", - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the streaming endpoint." - }, - "resourceState": { - "readOnly": true, - "type": "string", - "description": "The resource state of the streaming endpoint.", - "enum": [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ], - "x-ms-enum": { - "name": "StreamingEndpointResourceState", - "values": [ - { - "value": "Stopped", - "description": "The initial state of a streaming endpoint after creation. Content is not ready to be streamed from this endpoint." - }, - { - "value": "Starting", - "description": "The streaming endpoint is transitioning to the running state." - }, - { - "value": "Running", - "description": "The streaming endpoint is running. It is able to stream content to clients" - }, - { - "value": "Stopping", - "description": "The streaming endpoint is transitioning to the stopped state." - }, - { - "value": "Deleting", - "description": "The streaming endpoint is being deleted." - }, - { - "value": "Scaling", - "description": "The streaming endpoint is increasing or decreasing scale units." - } - ], - "modelAsString": true - } - }, - "crossSiteAccessPolicies": { - "type": "object", - "$ref": "#/definitions/CrossSiteAccessPolicies", - "description": "The streaming endpoint access policies." - }, - "freeTrialEndTime": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The free trial expiration time." - }, - "created": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was created." - }, - "lastModified": { - "readOnly": true, - "format": "date-time", - "type": "string", - "description": "The exact time the streaming endpoint was last modified." - } - }, - "description": "The streaming endpoint properties." - }, - "StreamingEndpoint": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StreamingEndpointProperties", - "description": "The streaming endpoint properties." - }, - "systemData": { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "The system metadata relating to this resource.", - "readOnly": true - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointCurrentSku", - "description": "The streaming endpoint sku." - } - }, - "allOf": [ - { - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "description": "The streaming endpoint." - }, - "StreamingEndpointListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingEndpoint" - }, - "description": "The result of the List StreamingEndpoint operation." - }, - "@odata.count": { - "type": "integer", - "format": "int32", - "description": "The number of result." - }, - "@odata.nextLink": { - "type": "string", - "description": "The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints." - } - }, - "description": "The streaming endpoint list result.", - "title": "StreamingEndpointListResult" - }, - "ArmStreamingEndpointCurrentSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - }, - "capacity": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint sku capacity." - } - }, - "description": "The streaming endpoint current sku.", - "type": "object" - }, - "ArmStreamingEndpointSku": { - "properties": { - "name": { - "type": "string", - "readOnly": true, - "description": "The streaming endpoint sku name." - } - }, - "description": "The streaming endpoint sku.", - "type": "object" - }, - "ArmStreamingEndpointCapacity": { - "properties": { - "scaleType": { - "type": "string", - "readOnly": true - }, - "default": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint default capacity." - }, - "minimum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint minimum capacity." - }, - "maximum": { - "type": "integer", - "format": "int32", - "description": "The streaming endpoint maximum capacity." - } - }, - "description": "The streaming endpoint sku capacity.", - "type": "object" - }, - "ArmStreamingEndpointSkuInfo": { - "properties": { - "resourceType": { - "type": "string" - }, - "capacity": { - "$ref": "#/definitions/ArmStreamingEndpointCapacity" - }, - "sku": { - "$ref": "#/definitions/ArmStreamingEndpointSku" - } - }, - "type": "object" - }, - "StreamingEndpointSkuInfoListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ArmStreamingEndpointSkuInfo" - }, - "x-ms-identifiers": [], - "description": "The result of the List StreamingEndpoint skus." - } - }, - "type": "object" - }, - "AsyncOperationResult": { - "properties": { - "error": { - "description": "The error object", - "$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" - }, - "name": { - "type": "string", - "description": "Operation Id of the async operation." - }, - "status": { - "description": "Operation status of the async operation.", - "type": "string", - "enum": [ - "Succeeded", - "Failed", - "InProgress" - ], - "x-ms-enum": { - "name": "AsyncOperationStatus", - "modelAsString": true - } - } - }, - "description": "The status of an async operation.", - "type": "object" - }, - "LiveEventIngestInterruption": { - "properties": { - "begin": { - "description": "UTC time of interruption start, encoder disconnected.", - "format": "date-time", - "type": "string" - }, - "end": { - "description": "UTC time of interruption end, encoder re-connected.", - "format": "date-time", - "type": "string" - }, - "duration": { - "format": "duration", - "type": "string", - "description": "Duration of interruption in ISO 8601 time. For example, use PT1H30M to indicate 1 hour and 30 minutes." - }, - "reason": { - "description": "Interruption reason.", - "type": "string" - } - }, - "description": "The live event ingest interruption data.", - "type": "object" - }, - "LiveEventIngestion": { - "properties": { - "streamName": { - "description": "Ingestion stream name.", - "type": "string" - }, - "begin": { - "description": "Ingestion begin time in UTC.", - "format": "date-time", - "type": "string" - }, - "end": { - "description": "Ingestion end time in UTC. Empty if it's not stopped yet.", - "format": "date-time", - "type": "string" - }, - "endReason": { - "description": "Reason why ingestion stops. Empty if it's not stopped yet. E.g) Service Stopped. No Ingestion.", - "type": "string" - }, - "ingestInterruptions": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventIngestInterruption" - }, - "x-ms-identifiers": [], - "description": "IngestInterruption entry list." - } - }, - "description": "The live event ingestion telemetry data.", - "type": "object" - }, - "LiveEventTrackStatus": { - "properties": { - "trackId": { - "description": "Track Id.", - "type": "string" - }, - "expectedBitrate": { - "description": "Expected bitrate for this track.", - "type": "integer", - "format": "int64" - }, - "incomingBitrate": { - "description": "Average incoming bitrate for last 20 seconds when live event is running.", - "type": "integer", - "format": "int64" - }, - "ingestDrift": { - "description": "Current ingest drift value in seconds for last 1 minute.", - "type": "string" - }, - "requestReceived": { - "description": "Total number of timed metadata request received.", - "type": "integer", - "format": "int64" - }, - "requestSucceeded": { - "description": "Total number of successful timed metadata request received.", - "type": "integer", - "format": "int64" - } - }, - "description": "The live event track status.", - "type": "object" - }, - "LiveEventStatus": { - "properties": { - "state": { - "type": "string", - "description": "Current state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information.", - "enum": [ - "Stopped", - "Running" - ], - "x-ms-enum": { - "name": "LiveEventState", - "values": [ - { - "value": "Stopped", - "description": "This is the initial state of the live event after creation (unless autostart was set to true.) No billing occurs in this state. In this state, the live event properties can be updated but streaming is not allowed." - }, - { - "value": "Running", - "description": "The live event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop on the live event resource to halt further billing." - } - ], - "modelAsString": true - } - }, - "healthStatus": { - "description": "Health status of last 20 seconds.", - "enum": [ - "Excellent", - "Good", - "Poor" - ], - "x-ms-enum": { - "name": "LiveEventHealthStatus", - "values": [ - { - "value": "Excellent", - "description": "Incoming bitrate >= 75% of target bitrate AND no Ingest warning and error AND ABS(IngestDrift) is equal to 0." - }, - { - "value": "Good", - "description": "Incoming bitrate >= 20% AND no Ingest Error or warning exception discontinuities which gap < 10 seconds." - }, - { - "value": "Poor", - "description": "Otherwise." - } - ], - "modelAsString": true - }, - "type": "string" - }, - "healthDescriptions": { - "description": "List of strings justifying the health status.", - "type": "array", - "items": { - "type": "string" - } - }, - "lastUpdatedTime": { - "description": "Last updated UTC time of this status.", - "format": "date-time", - "type": "string" - }, - "ingestion": { - "description": "Live event ingestion entry.", - "$ref": "#/definitions/LiveEventIngestion" - }, - "trackStatus": { - "description": "Track entry list.", - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTrackStatus" - }, - "x-ms-identifiers": [] - } - }, - "description": "The live event status.", - "type": "object" - }, - "LiveEventGetStatusResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventStatus" - }, - "x-ms-identifiers": [], - "description": "The result of the get live event status." - } - }, - "description": "Get live event status result.", - "type": "object" - }, - "LiveEventStreamEventData": { - "properties": { - "trackName": { - "description": "Name of the track. ", - "type": "string" - }, - "streamId": { - "description": "Stream ID in the format \"trackName_bitrate\"", - "type": "string" - }, - "trackId": { - "description": "Track index.", - "type": "integer", - "format": "int32" - }, - "mediaType": { - "description": "Type of the track.", - "enum": [ - "audio", - "video" - ], - "x-ms-enum": { - "name": "LiveEventStreamEventMediaType", - "modelAsString": true - }, - "type": "string" - }, - "bitrate": { - "description": "Bitrate of the track.", - "type": "integer", - "format": "int64" - }, - "mediaTimestamp": { - "description": "Fragment timestamp in timescale.", - "type": "string" - }, - "timescale": { - "description": "Timescale in which timestamps are expressed.", - "type": "string" - }, - "previousFragmentTimestamp": { - "description": "Previous fragment timestamp in timescale.", - "type": "string" - }, - "previousFragmentDuration": { - "description": "Previous fragment duration in timescale.", - "type": "string" - }, - "currentFragmentTimestamp": { - "description": "Current fragment timestamp in timescale.", - "type": "string" - }, - "fragmentOneTimestamp": { - "description": "Timestamp of first fragment used to make a comparison, in timescale.", - "type": "string" - }, - "fragmentOneDuration": { - "description": "Duration of first fragment used to make a comparison, in timescale.", - "type": "string" - }, - "fragmentTwoTimestamp": { - "description": "Timestamp of second fragment used to make a comparison, in timescale.", - "type": "string" - }, - "fragmentTwoDuration": { - "description": "Duration of second fragment used to make a comparison, in timescale.", - "type": "string" - }, - "fragmentDropReason": { - "description": "Reason the fragment was dropped.", - "type": "string" - }, - "discontinuityGap": { - "description": "Length of the discontinuity gap in timescale.", - "type": "integer", - "format": "int64" - }, - "streamName": { - "description": "Identifier of the stream or connection. Encoder or customer is responsible to add this ID in the ingest URL.", - "type": "string" - }, - "resultCode": { - "description": "Result code.", - "type": "string" - }, - "resultMessage": { - "description": "Result message.", - "type": "string" - }, - "duration": { - "description": "Fragment duration.", - "type": "string" - }, - "resolution": { - "description": "Width x Height for video, null otherwise.", - "type": "string" - }, - "minTime": { - "description": "The smaller timestamp of the two fragments compared.", - "type": "string" - }, - "minTimeMediaType": { - "description": "The media type of the smaller timestamp of two fragments compared.", - "enum": [ - "Audio", - "Video" - ], - "x-ms-enum": { - "name": "LiveEventStreamEventMinTimeMediaType", - "modelAsString": true - }, - "type": "string" - }, - "maxTime": { - "description": "The larger timestamp of the two fragments compared.", - "type": "string" - }, - "maxTimeMediaType": { - "description": "The media type of the larger timestamp of two fragments compared.", - "enum": [ - "Audio", - "Video" - ], - "x-ms-enum": { - "name": "LiveEventStreamEventMaxTimeMediaType", - "modelAsString": true - }, - "type": "string" - }, - "timescaleOfMinTime": { - "description": "Timescale of the fragment with the smaller timestamp.", - "type": "string" - }, - "timescaleOfMaxTime": { - "description": "Timescale of the fragment with the larger timestamp.", - "type": "string" - }, - "remoteIp": { - "description": "Truncated IP of the encoder.", - "type": "string" - }, - "remotePort": { - "description": "Port of the encoder.", - "type": "string" - } - }, - "description": "The live event stream event data.", - "type": "object" - }, - "LiveEventStreamEvent": { - "properties": { - "eventType": { - "description": "The type of the stream event. Format: StreamEvent/{eventType}", - "enum": [ - "StreamEvent/BeginIngest", - "StreamEvent/EndIngest", - "StreamEvent/FirstChunkReceived", - "StreamEvent/ChunkDropped", - "StreamEvent/UnalignedKeyFrames", - "StreamEvent/UnalignedPresentation", - "StreamEvent/Discontinuity", - "StreamEvent/InvalidConnection" - ], - "x-ms-enum": { - "name": "LiveEventStreamEventType", - "values": [ - { - "value": "StreamEvent/BeginIngest", - "description": "Ingest session begins." - }, - { - "value": "StreamEvent/EndIngest", - "description": "Ingest session ends." - }, - { - "value": "StreamEvent/FirstChunkReceived", - "description": "First fragment received on ingest media track." - }, - { - "value": "StreamEvent/ChunkDropped", - "description": "Fragment dropped." - }, - { - "value": "StreamEvent/UnalignedKeyFrames", - "description": "Unaligned video keyframes detected." - }, - { - "value": "StreamEvent/UnalignedPresentation", - "description": "Unaligned presentation detected, meaning two fragments across two quality levels are not time aligned." - }, - { - "value": "StreamEvent/Discontinuity", - "description": "Timestamp discontinuity detected." - }, - { - "value": "StreamEvent/InvalidConnection", - "description": "Ingest session denied." - } - ], - "modelAsString": true - }, - "type": "string" - }, - "eventTime": { - "description": "The time event raised.", - "format": "date-time", - "type": "string" - }, - "eventLevel": { - "description": "Event level.", - "type": "string", - "enum": [ - "Critical", - "Error", - "Warning", - "Information" - ], - "x-ms-enum": { - "name": "LiveEventStreamEventLevel", - "modelAsString": true - } - }, - "data": { - "description": "Event data based on event type.", - "$ref": "#/definitions/LiveEventStreamEventData" - } - }, - "description": "The live event stream event.", - "type": "object" - }, - "LiveEventGetStreamEventsResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventStreamEvent" - }, - "x-ms-identifiers": [], - "description": "The result of the get live event stream events." - } - }, - "description": "Get live event stream events result.", - "type": "object" - }, - "LiveEventTrackEventData": { - "properties": { - "trackName": { - "description": "Name of the track.", - "type": "string" - }, - "trackType": { - "description": "Type of the track.", - "enum": [ - "audio", - "video" - ], - "x-ms-enum": { - "name": "LiveEventTrackEventTrackType", - "modelAsString": true - }, - "type": "string" - }, - "bitrate": { - "description": "Bitrate of the track.", - "type": "integer", - "format": "int64" - }, - "incomingBitrate": { - "description": "Calculated bitrate based on data chunks coming from encoder.", - "type": "integer", - "format": "int64" - }, - "lastTimestamp": { - "description": "Latest timestamp received for a track in last 20 seconds.", - "type": "string" - }, - "timescale": { - "description": "Timescale in which timestamps are expressed.", - "type": "string" - }, - "overlapCount": { - "description": "Number of data chunks that had overlapped timestamps in last 20 seconds.", - "type": "integer", - "format": "int64" - }, - "discontinuityCount": { - "description": "Number of discontinuities detected in the last 20 seconds.", - "type": "integer", - "format": "int64" - }, - "nonincreasingCount": { - "description": "Number of data chunks with timestamps in the past that were received in last 20 seconds.", - "type": "integer", - "format": "int64" - }, - "unexpectedBitrate": { - "description": "If expected and actual bitrates differ by more than allowed limit in last 20 seconds.", - "type": "boolean" - }, - "state": { - "description": "State of the live event.", - "type": "string" - }, - "healthy": { - "description": "Indicates whether ingest is healthy.", - "type": "boolean" - }, - "lastFragmentArrivalTime": { - "description": "The last timestamp in UTC that a fragment arrived at the ingest endpoint.", - "format": "date-time", - "type": "string" - }, - "ingestDriftValue": { - "description": "Indicates the speed of delay, in seconds-per-minute, of the incoming audio or video data during the last minute. The value is greater than zero if data is arriving to the live event slower than expected in the last minute; zero if data arrived with no delay; and \"n/a\" if no audio or video data was received. For example, if you have a contribution encoder sending in live content, and it is slowing down due to processing issues, or network latency, it may be only able to deliver a total of 58 seconds of audio or video in a one-minute period. This would be reported as two seconds-per-minute of drift. If the encoder is able to catch up and send all 60 seconds or more of data every minute, you will see this value reported as 0. If there was a disconnection or discontinuity from the encoder, this value may still display as 0, as it does not account for breaks in the data - only data that is delayed in timestamps.", - "type": "string" - }, - "transcriptionState": { - "description": "This value is \"On\" for audio track heartbeats if live transcription is turned on, otherwise you will see an empty string. This state is only applicable to track type of \"audio\" for Live transcription. All other tracks will have an empty value.", - "type": "string" - }, - "transcriptionLanguage": { - "description": "The language code (in BCP-47 format) of the transcription language. For example, \"de-de\" indicates German (Germany). The value is empty for the video track heartbeats, or when live transcription is turned off.", - "type": "string" - } - }, - "description": "The live event track ingest heart beat event data.", - "type": "object" - }, - "LiveEventTrackEvent": { - "properties": { - "eventType": { - "description": "The type of the track event.", - "enum": [ - "TrackEvent/IngestHeartbeat" - ], - "x-ms-enum": { - "name": "LiveEventTrackEventType", - "values": [ - { - "value": "TrackEvent/IngestHeartbeat", - "description": "Track heartbeat received." - } - ], - "modelAsString": true - }, - "type": "string" - }, - "eventTime": { - "description": "The time event raised.", - "format": "date-time", - "type": "string" - }, - "data": { - "description": "Event data.", - "$ref": "#/definitions/LiveEventTrackEventData" - } - }, - "description": "The live event track event.", - "type": "object" - }, - "LiveEventGetTrackIngestHeartbeatsResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventTrackEvent" - }, - "x-ms-identifiers": [], - "description": "The result of the get live event track events." - } - }, - "description": "Get live event track ingest heart beats result.", - "type": "object" - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "description": "The unique identifier for a Microsoft Azure subscription.", - "in": "path", - "required": true, - "type": "string" - }, - "ApiVersion": { - "name": "api-version", - "description": "The version of the API to be used with the client request.", - "in": "query", - "required": true, - "type": "string" - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "description": "The name of the resource group within the Azure subscription.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "MediaServicesAccountName": { - "name": "accountName", - "description": "The Media Services account name.", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "LiveEventName": { - "name": "liveEventName", - "description": "The name of the live event, maximum length is 32.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 32, - "x-ms-parameter-location": "method" - }, - "StreamingResourceAutoStart": { - "name": "autoStart", - "description": "The flag indicates if the resource should be automatically started on creation.", - "in": "query", - "required": false, - "type": "boolean", - "x-ms-parameter-location": "method" - }, - "LiveOutputName": { - "name": "liveOutputName", - "description": "The name of the live output.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 256, - "x-ms-parameter-location": "method" - }, - "StreamingEndpointName": { - "name": "streamingEndpointName", - "description": "The name of the streaming endpoint, maximum length is 24.", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", - "minLength": 1, - "maxLength": 24, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/mediaservices/resource-manager/readme.go.md b/specification/mediaservices/resource-manager/readme.go.md deleted file mode 100644 index fd7db651b143..000000000000 --- a/specification/mediaservices/resource-manager/readme.go.md +++ /dev/null @@ -1,25 +0,0 @@ -## Go - -These settings apply only when `--go` is specified on the command line. - -```yaml $(go) && !$(track2) -go: - license-header: MICROSOFT_MIT_NO_VERSION - namespace: media - clear-output-folder: true -``` - -``` yaml $(go) && $(track2) -license-header: MICROSOFT_MIT_NO_VERSION -module-name: sdk/resourcemanager/mediaservices/armmediaservices -module: github.com/Azure/azure-sdk-for-go/$(module-name) -output-folder: $(go-sdk-folder)/$(module-name) -azure-arm: true -directive: - - rename-operation: - from: OperationStatuses_Get - to: AssetTrackOperationStatuses_Get - - rename-operation: - from: OperationResults_Get - to: AssetTrackOperationResults_Get -``` diff --git a/specification/mediaservices/resource-manager/readme.java.md b/specification/mediaservices/resource-manager/readme.java.md deleted file mode 100644 index 1107a79b0ae9..000000000000 --- a/specification/mediaservices/resource-manager/readme.java.md +++ /dev/null @@ -1,105 +0,0 @@ -## Java - -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. - -``` yaml $(java) -service-name: MediaServices - -azure-arm: true -fluent: true -namespace: com.microsoft.azure.management.mediaservices -license-header: MICROSOFT_MIT_NO_CODEGEN -payload-flattening-threshold: 1 -output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-mediaservices -``` - -### Java multi-api - -``` yaml $(java) && $(multiapi) -batch: - - tag: package-2015-10 - - tag: package-2018-03-preview - - tag: package-2018-06-preview - - tag: package-2018-07 - - tag: package-2019-05-preview - - tag: package-2020-05 -``` - -### Tag: package-2015-10 and java - -These settings apply only when `--tag=package-2015-10 --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2015-10' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2015_10_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2015_10_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-03-preview and java - -These settings apply only when `--tag=package-2018-03-preview --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-03-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2018_03_30_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2018_03_30_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-06-preview and java - -These settings apply only when `--tag=package-2018-06-preview --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-06-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2018_06_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2018_06_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2018-07 and java - -These settings apply only when `--tag=package-2018-07 --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2018-07' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2018_07_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2018_07_01 -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2019-05-preview and java - -These settings apply only when `--tag=package-2019-05-preview --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2019-05-preview' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2019_05_01_preview - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2019_05_01_preview -regenerate-manager: true -generate-interface: true -``` - -### Tag: package-2020-05 and java - -These settings apply only when `--tag=package-2020-05 --java` is specified on the command line. -Please also specify the `--azure-libraries-for-java-folder=`. - -``` yaml $(tag) == 'package-2020-05' && $(java) && $(multiapi) -java: - namespace: com.microsoft.azure.management.mediaservices.v2020_05_01 - output-folder: $(azure-libraries-for-java-folder)/sdk/mediaservices/mgmt-v2020_05_01 -regenerate-manager: true -generate-interface: true -``` \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md deleted file mode 100644 index 9a7ab7b96482..000000000000 --- a/specification/mediaservices/resource-manager/readme.md +++ /dev/null @@ -1,427 +0,0 @@ -# MediaServices - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for MediaServices. - ---- - -## Getting Started - -To build the SDK for MediaServices, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` - ---- - -## Configuration - -### Basic Information - -These are the global settings for the MediaServices API. - -``` yaml -openapi-type: arm -tag: package-metadata-2023-01 -opt-in-extensible-enums: true -``` - -### Suppression - -``` yaml -directive: - - suppress: R2016 - where: $.definitions.TrackedResource.required - reason: we are still using PUT definition for PATCH, which has location as required property. this is existing suppression added to avoid breaking change. - - - suppress: DeleteOperationResponses - reason: Per ARM Specs, async APIs must return 202 when a response is accepted. - where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}"].delete.responses' - from: AssetsAndAssetFilters.json - - - suppress: RequiredReadOnlySystemData - reason: Per ARM Specs, only top level tracked resources return systemMetadata. - where: - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}"].put' - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}"].get' - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}"].patch' - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}/operationResults/{operationId}"].get' - - from: AssetsAndAssetFilters.json - - - suppress: RequiredReadOnlySystemData - reason: Per ARM Specs, only top level tracked resources return systemMetadata. - where: - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}"].get' - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}"].put' - - '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}"].get' - from: Accounts.json -``` - -### Tag: package-metadata-2023-01 - -These settings apply only when `--tag=package-metadata-2023-01` is specified on the command line. - -```yaml $(tag) == 'package-metadata-2023-01' -input-file: - - Microsoft.Media/Metadata/stable/2023-01-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json - - Microsoft.Media/Metadata/stable/2023-01-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2023-01-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2023-01-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json -``` - -### Tag: package-2023-01 - -These settings apply only when `--tag=package-2023-01` is specified on the command line. - -```yaml $(tag) == 'package-2023-01' -input-file: - - Microsoft.Media/Metadata/stable/2023-01-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json - - Microsoft.Media/Metadata/stable/2023-01-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2023-01-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2023-01-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json -``` - -### Tag: package-account-2023-01 - -These settings apply only when `--tag=package-account-2023-01` is specified on the command line. - -```yaml $(tag) == 'package-account-2023-01' -input-file: - - Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2023-01-01/Accounts.json - - Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json -``` - -### Tag: package-streaming-2022-11 - -These settings apply only when `--tag=package-streaming-2022-11` is specified on the command line. - -``` yaml $(tag) == 'package-streaming-2022-11' -input-file: - - Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-11-01/streamingservice.json -``` - -### Tag: package-encoding-2022-05-preview - -These settings apply only when `--tag=package-encoding-2022-05-preview` is specified on the command line. - -``` yaml $(tag) == 'package-preview-2022-05' -input-file: - - Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/preview/2022-05-01-preview/Encoding.json - - Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json -``` - -### Tag: package-encoding-2022-07 - -These settings apply only when `--tag=package-encoding-2022-07` is specified on the command line. - -``` yaml $(tag) == 'package-encoding-2022-07' -input-file: - - Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2022-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json -``` - -### Tag: package-metadata-2022-08 - -These settings apply only when `--tag=package-metadata-2022-08` is specified on the command line. - -``` yaml $(tag) == 'package-metadata-2022-08' -input-file: - - Microsoft.Media/Metadata/stable/2022-08-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2022-08-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2022-08-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json - - Microsoft.Media/Metadata/stable/2022-08-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json -``` - -### Tag: package-2022-08 - -These settings apply only when `--tag=package-2022-08` is specified on the command line. - -``` yaml $(tag) == 'package-2022-08' -input-file: - - Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json - - Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2022-08-01/streamingservice.json -``` - -### Tag: package-account-2021-11 - -These settings apply only when `--tag=package-account-2021-11` is specified on the command line. - -``` yaml $(tag) == 'package-account-2021-11' -input-file: - - Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-11-01/Accounts.json - - Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json - - Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2021-11-01/streamingservice.json -``` - -### Tag: package-2021-11 - -These settings apply only when `--tag=package-2021-11` is specified on the command line. - -``` yaml $(tag) == 'package-2021-11' -input-file: - - Microsoft.Media/Metadata/stable/2021-11-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-06-01/Accounts.json - - Microsoft.Media/Metadata/stable/2021-11-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2021-11-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2021-11-01/Encoding.json - - Microsoft.Media/Metadata/stable/2021-11-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2021-11-01/streamingservice.json -``` - -### Tag: package-2021-06 - -These settings apply only when `--tag=package-2021-06` is specified on the command line. - -``` yaml $(tag) == 'package-2021-06' -input-file: - - Microsoft.Media/Accounts/stable/2021-06-01/Accounts.json - - Microsoft.Media/Metadata/stable/2021-06-01/AccountFilters.json - - Microsoft.Media/Metadata/stable/2021-06-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2021-06-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2021-06-01/Encoding.json - - Microsoft.Media/Metadata/stable/2021-06-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2021-06-01/streamingservice.json -directive: - - suppress: R2016 - where: $.definitions.TrackedResource.required - reason: location is a required property for our patch calls -``` - -### Tag: package-2021-05 - -These settings apply only when `--tag=package-2021-05` is specified on the command line. - -``` yaml $(tag) == 'package-2021-05' -input-file: - - Microsoft.Media/Metadata/stable/2020-05-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2021-05-01/Accounts.json - - Microsoft.Media/Metadata/stable/2020-05-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2020-05-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2020-05-01/Encoding.json - - Microsoft.Media/Metadata/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2020-05-01/streamingservice.json - - Microsoft.Media/Accounts/stable/2020-05-01/Common.json -directive: - - suppress: R2016 - where: $.definitions.TrackedResource.required - reason: location is a required property for our patch calls -``` - -### Tag: package-2020-05 - -These settings apply only when `--tag=package-2020-05` is specified on the command line. - -``` yaml $(tag) == 'package-2020-05' -input-file: - - Microsoft.Media/Metadata/stable/2020-05-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2020-05-01/Accounts.json - - Microsoft.Media/Metadata/stable/2020-05-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2020-05-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2020-05-01/Encoding.json - - Microsoft.Media/Metadata/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2020-05-01/streamingservice.json - - Microsoft.Media/Accounts/stable/2020-05-01/Common.json -directive: - - suppress: R2016 - where: $.definitions.TrackedResource.required - reason: location is a required property for our patch calls -``` - -### Tag: package-2020-02-preview - -These settings apply only when `--tag=package-2020-02-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2020-02-preview' -input-file: - - Microsoft.Media/Metadata/stable/2018-07-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json - - Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json - - Microsoft.Media/Accounts/preview/2020-02-01-preview/MediaGraphs.json - - Microsoft.Media/Accounts/preview/2020-02-01-preview/Common.json - - Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2018-07-01/streamingservice.json -``` - -### 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/Metadata/stable/2018-07-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json - - Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json - - Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json - - Microsoft.Media/Accounts/preview/2019-09-01-preview/MediaGraphs.json - - Microsoft.Media/Accounts/preview/2019-09-01-preview/Common.json - - Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/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. - -``` yaml $(tag) == 'package-2019-05-preview' -input-file: - - Microsoft.Media/Metadata/preview/2019-05-01-preview/AccountFilters.json - - Microsoft.Media/Accounts/preview/2019-05-01-preview/Accounts.json - - Microsoft.Media/Metadata/preview/2019-05-01-preview/AssetsAndAssetFilters.json - - Microsoft.Media/Accounts/preview/2019-05-01-preview/Common.json - - Microsoft.Media/Metadata/preview/2019-05-01-preview/ContentKeyPolicies.json - - Microsoft.Media/Encoding/preview/2019-05-01-preview/Encoding.json - - Microsoft.Media/Metadata/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/preview/2019-05-01-preview/streamingservice.json -``` - -### Tag: package-2018-07 - -These settings apply only when `--tag=package-2018-07` is specified on the command line. - -``` yaml $(tag) == 'package-2018-07' -input-file: - - Microsoft.Media/Metadata/stable/2018-07-01/AccountFilters.json - - Microsoft.Media/Accounts/stable/2018-07-01/Accounts.json - - Microsoft.Media/Metadata/stable/2018-07-01/AssetsAndAssetFilters.json - - Microsoft.Media/Accounts/stable/2018-07-01/Common.json - - Microsoft.Media/Metadata/stable/2018-07-01/ContentKeyPolicies.json - - Microsoft.Media/Encoding/stable/2018-07-01/Encoding.json - - Microsoft.Media/Metadata/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/stable/2018-07-01/streamingservice.json -``` - -### Tag: package-2015-10 - -These settings apply only when `--tag=package-2015-10` is specified on the command line. - -``` yaml $(tag) == 'package-2015-10' -input-file: - - Microsoft.Media/Accounts/stable/2015-10-01/media.json -``` - -### Tag: package-2018-03-preview - -These settings apply only when `--tag=package-2018-03-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2018-03-preview' -input-file: - - Microsoft.Media/Accounts/preview/2018-03-30-preview/Accounts.json - - Microsoft.Media/Metadata/preview/2018-03-30-preview/Assets.json - - Microsoft.Media/Accounts/preview/2018-03-30-preview/Common.json - - Microsoft.Media/Metadata/preview/2018-03-30-preview/ContentKeyPolicies.json - - Microsoft.Media/Encoding/preview/2018-03-30-preview/Encoding.json - - Microsoft.Media/Metadata/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/preview/2018-03-30-preview/streamingservice.json -``` - -### Tag: package-2018-06-preview - -These settings apply only when `--tag=package-2018-06-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2018-06-preview' -input-file: - - Microsoft.Media/Accounts/preview/2018-06-01-preview/Accounts.json - - Microsoft.Media/Metadata/preview/2018-06-01-preview/Assets.json - - Microsoft.Media/Accounts/preview/2018-06-01-preview/Common.json - - Microsoft.Media/Metadata/preview/2018-06-01-preview/ContentKeyPolicies.json - - Microsoft.Media/Encoding/preview/2018-06-01-preview/Encoding.json - - Microsoft.Media/Metadata/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json - - Microsoft.Media/Streaming/preview/2018-06-01-preview/streamingservice.json -``` - ---- - -# Code Generation - -## Swagger to SDK - -This section describes what SDK should be generated by the automatic system. -This is not used by Autorest itself. - -``` yaml $(swagger-to-sdk) -swagger-to-sdk: - - repo: azure-sdk-for-net - - repo: azure-sdk-for-python - - repo: azure-sdk-for-java - - repo: azure-sdk-for-go - - repo: azure-sdk-for-js - - repo: azure-sdk-for-node - - repo: azure-sdk-for-ruby - after_scripts: - - bundle install && rake arm:regen_all_profiles['azure_mgmt_media_services'] - - repo: azure-resource-manager-schemas - - repo: azure-powershell -``` - -## Python - -See configuration in [readme.python.md](./readme.python.md) - -## Go - -See configuration in [readme.go.md](./readme.go.md) - -## Java - -See configuration in [readme.java.md](./readme.java.md) - -## Suppression - -``` yaml -directive: - - suppress: OBJECT_MISSING_REQUIRED_PROPERTY - from: Encoding.json - where: $.definitions.JobProperties - reason: Input not required for Job update - - suppress: OBJECT_MISSING_REQUIRED_PROPERTY - from: Encoding.json - where: $.definitions.JobProperties - reason: Output not required for job update -``` diff --git a/specification/mediaservices/resource-manager/readme.nodejs.md b/specification/mediaservices/resource-manager/readme.nodejs.md deleted file mode 100644 index ae60bcd221e1..000000000000 --- a/specification/mediaservices/resource-manager/readme.nodejs.md +++ /dev/null @@ -1,14 +0,0 @@ -## Node.js - -These settings apply only when `--nodejs` is specified on the command line. -Please also specify `--node-sdks-folder=`. - -``` yaml $(nodejs) -nodejs: - azure-arm: true - package-name: azure-arm-mediaservices - output-folder: $(node-sdks-folder)/lib/services/mediaServicesManagement - generate-license-txt: true - generate-package-json: true - generate-readme-md: true -``` diff --git a/specification/mediaservices/resource-manager/readme.python.md b/specification/mediaservices/resource-manager/readme.python.md deleted file mode 100644 index 763a5c20f218..000000000000 --- a/specification/mediaservices/resource-manager/readme.python.md +++ /dev/null @@ -1,19 +0,0 @@ -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. - -``` yaml $(python) -azure-arm: true -license-header: MICROSOFT_MIT_NO_VERSION -namespace: azure.mgmt.media -package-name: azure-mgmt-media -package-version: 1.0.0b1 -clear-output-folder: true -``` - -``` yaml $(python) -no-namespace-folders: true -output-folder: $(python-sdks-folder)/media/azure-mgmt-media/azure/mgmt/media -``` diff --git a/specification/mediaservices/resource-manager/readme.ruby.md b/specification/mediaservices/resource-manager/readme.ruby.md deleted file mode 100644 index 99b9c5de6b12..000000000000 --- a/specification/mediaservices/resource-manager/readme.ruby.md +++ /dev/null @@ -1,60 +0,0 @@ -## Ruby - -These settings apply only when `--ruby` is specified on the command line. - -``` yaml -package-name: azure_mgmt_media_services -package-version: "0.17.0" -azure-arm: true -``` - -### Ruby multi-api - -``` yaml $(ruby) && $(multiapi) -batch: - - tag: package-2018-07 - - tag: package-2018-06-preview - - tag: package-2018-03-preview - - tag: package-2015-10 -``` - -### Tag: package-2018-07 and ruby - -These settings apply only when `--tag=package-2018-07 --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -``` yaml $(tag) == 'package-2018-07' && $(ruby) -namespace: "Azure::MediaServices::Mgmt::V2018_07_01" -output-folder: $(ruby-sdks-folder)/management/azure_mgmt_media_services/lib -``` - - -### Tag: package-2018-06-preview and ruby - -These settings apply only when `--tag=package-2018-06-preview --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -``` yaml $(tag) == 'package-2018-06-preview' && $(ruby) -namespace: "Azure::MediaServices::Mgmt::V2018_06_01_preview" -output-folder: $(ruby-sdks-folder)/management/azure_mgmt_media_services/lib -``` - -### Tag: package-2018-03-preview and ruby - -These settings apply only when `--tag=package-2018-03-preview --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -``` yaml $(tag) == 'package-2018-03-preview' && $(ruby) -namespace: "Azure::MediaServices::Mgmt::V2018_03_30_preview" -output-folder: $(ruby-sdks-folder)/management/azure_mgmt_media_services/lib -``` - -### Tag: package-2015-10 and ruby - -These settings apply only when `--tag=package-2015-10 --ruby` is specified on the command line. -Please also specify `--ruby-sdks-folder=`. - -``` yaml $(tag) == 'package-2015-10' && $(ruby) -namespace: "Azure::MediaServices::Mgmt::V2015_10_01" -output-folder: $(ruby-sdks-folder)/management/azure_mgmt_media_services/lib -``` diff --git a/specification/mediaservices/resource-manager/readme.test.md b/specification/mediaservices/resource-manager/readme.test.md deleted file mode 100644 index 365b0ae7db53..000000000000 --- a/specification/mediaservices/resource-manager/readme.test.md +++ /dev/null @@ -1,12 +0,0 @@ -### Tag: package-metadata-2023-01 - -These settings apply only when `--tag=package-metadata-2023-01` is specified on the command line. - -```yaml $(tag) == 'package-metadata-2023-01' -test-resources: - - Microsoft.Media/Accounts/stable/2023-01-01/scenarios/AccountTests.yaml - - Microsoft.Media/Metadata/stable/2023-01-01/scenarios/MetadataTests.yaml - - Microsoft.Media/Encoding/stable/2022-07-01/scenarios/EncodingTests.yaml - - Microsoft.Media/Streaming/stable/2022-11-01/scenarios/StreamingTests.yaml - -``` \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/readme.typescript.md b/specification/mediaservices/resource-manager/readme.typescript.md deleted file mode 100644 index 25dcf854a0d3..000000000000 --- a/specification/mediaservices/resource-manager/readme.typescript.md +++ /dev/null @@ -1,12 +0,0 @@ -## TypeScript - -These settings apply only when `--typescript` is specified on the command line. -Please also specify `--typescript-sdks-folder=`. - -``` yaml $(typescript) -typescript: - azure-arm: true - package-name: "@azure/arm-mediaservices" - output-folder: "$(typescript-sdks-folder)/sdk/mediaservices/arm-mediaservices" - generate-metadata: true -```