diff --git a/schemas/2015-10-01/Microsoft.Media.json b/schemas/2015-10-01/Microsoft.Media.json index 75284f01f2..dfa54e87db 100644 --- a/schemas/2015-10-01/Microsoft.Media.json +++ b/schemas/2015-10-01/Microsoft.Media.json @@ -1,99 +1,123 @@ -{ - "id": "https://schema.management.azure.com/schemas/2015-10-01/Microsoft.Media.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.Media", - "description": "Microsoft Media Service Resource Type", - "resourceDefinitions": { - "mediaServices": { - "type": "object", - "properties": { - "type": { - "enum": [ - "Microsoft.Media/mediaServices" - ] - }, - "apiVersion": { - "enum": [ - "2015-10-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-z0-9]{3,26}$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/storageAccounts" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "type", - "apiVersion", - "location" - ], - "description": "Microsoft.Media/mediaServices" - } - }, - "definitions" : { - "storageAccounts": { - "properties": { - "storageAccounts": { - "oneOf" : [ - { - "type": "array", - "items": { - "$ref": "#/definitions/storageAccount" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "storageAccount": { - "oneOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "isPrimary": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "id", - "isPrimary" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } -} +{ + "id": "https://schema.management.azure.com/schemas/2015-10-01/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaservices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-10-01" + ] + }, + "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)." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-z0-9]{3,24}$", + "minLength": 3, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of the Media Service." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaServiceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The additional properties of a Media Service resource." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tags to help categorize the resource in the Azure portal." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices" + } + }, + "definitions": { + "MediaServiceProperties": { + "type": "object", + "properties": { + "storageAccounts": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StorageAccount" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage accounts for this resource." + } + }, + "description": "The additional properties of a Media Service resource." + }, + "StorageAccount": { + "type": "object", + "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 (isPrimary false)." + }, + "isPrimary": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false." + } + }, + "required": [ + "id", + "isPrimary" + ], + "description": "The properties of a storage account associated with this resource." + } + } +} diff --git a/schemas/2018-03-30-preview/Microsoft.Media.json b/schemas/2018-03-30-preview/Microsoft.Media.json new file mode 100644 index 0000000000..8af6023b20 --- /dev/null +++ b/schemas/2018-03-30-preview/Microsoft.Media.json @@ -0,0 +1,4333 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-03-30-preview/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaservices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "type": "string", + "description": "The Media Services account name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaServiceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Media Services account." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_assets_childResource" + }, + { + "$ref": "#/definitions/mediaServices_contentKeyPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_transforms_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingLocators_childResource" + }, + { + "$ref": "#/definitions/mediaservices_liveEvents_childResource" + }, + { + "$ref": "#/definitions/mediaservices_streamingEndpoints_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices" + }, + "mediaServices_assets": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaservices_liveEvents_liveOutputs_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Locator" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_transforms_jobs_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms/jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + } + }, + "definitions": { + "AacAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AacAudio" + ] + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AacLc", + "HeAacV1", + "HeAacV2" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding profile to be used when encoding audio with AAC." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." + }, + "AkamaiAccessControl": { + "type": "object", + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "AkamaiSignatureHeaderAuthenticationKey": { + "type": "object", + "properties": { + "base64Key": { + "type": "string", + "description": "authentication key" + }, + "expiration": { + "type": "string", + "format": "date-time", + "description": "The exact time the authentication key." + }, + "identifier": { + "type": "string", + "description": "identifier of the key" + } + }, + "description": "Akamai Signature Header authentication key." + }, + "AssetProperties": { + "type": "object", + "properties": { + "alternateId": { + "type": "string", + "description": "The alternate ID of the Asset." + }, + "container": { + "type": "string", + "description": "The name of the asset blob container." + }, + "description": { + "type": "string", + "description": "The Asset description." + }, + "storageAccountName": { + "type": "string", + "description": "The name of the storage account." + } + }, + "description": "The Asset properties." + }, + "Audio": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AacAudio" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Audio" + ] + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The bitrate, in bits per second, of the output encoded audio." + }, + "channels": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of channels in the audio." + }, + "samplingRate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sampling rate to use for encoding in hertz." + } + }, + "required": [ + "@odata.type" + ], + "description": "Defines the common properties for all audio codecs." + }, + "AudioAnalyzerPreset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/VideoAnalyzerPreset" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioAnalyzerPreset" + ] + }, + "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'." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "AudioOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioOverlay" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of an audio overlay." + }, + "BuiltInStandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.BuiltInStandardEncoderPreset" + ] + }, + "presetName": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AdaptiveStreaming", + "AACGoodQualityAudio", + "H264MultipleBitrate1080p", + "H264MultipleBitrate720p", + "H264MultipleBitrateSD" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The built-in preset to be used for encoding videos." + } + }, + "required": [ + "@odata.type", + "presetName" + ], + "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." + }, + "CbcsDrmConfiguration": { + "type": "object", + "properties": { + "fairPlay": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify drm configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "CencDrmConfiguration": { + "type": "object", + "properties": { + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify drm configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "Codec": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Audio" + }, + { + "$ref": "#/definitions/CopyVideo" + }, + { + "$ref": "#/definitions/Video" + }, + { + "$ref": "#/definitions/CopyAudio" + } + ], + "properties": { + "label": { + "type": "string", + "description": "An optional label for the codec. The label can be used to control muxing behavior." + } + }, + "description": "Describes the basic properties of all codecs." + }, + "CommonEncryptionCbcs": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CbcsDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify drm configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "CommonEncryptionCenc": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CencDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify drm configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for envelope encryption scheme" + }, + "ContentKeyPolicyClearKeyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a configuration for non-DRM keys." + }, + "ContentKeyPolicyConfiguration": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyClearKeyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyWidevineConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyFairPlayConfiguration" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "ContentKeyPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" + ] + }, + "ask": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key that must be used as FairPlay ASk." + }, + "fairPlayPfx": { + "type": "string", + "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." + }, + "fairPlayPfxPassword": { + "type": "string", + "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." + }, + "rentalAndLeaseKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Undefined", + "PersistentUnlimited", + "PersistentLimited" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental and lease key type." + }, + "rentalDuration": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental duration. Must be greater than or equal to 0." + } + }, + "required": [ + "@odata.type", + "ask", + "fairPlayPfx", + "fairPlayPfxPassword", + "rentalAndLeaseKeyType", + "rentalDuration" + ], + "description": "Specifies a configuration for FairPlay licenses." + }, + "ContentKeyPolicyOpenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents an open restriction. License or key will be delivered on every request." + }, + "ContentKeyPolicyOption": { + "type": "object", + "properties": { + "configuration": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "name": { + "type": "string", + "description": "The Policy Option description." + }, + "restriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + } + }, + "required": [ + "configuration", + "restriction" + ], + "description": "Represents a policy option." + }, + "ContentKeyPolicyPlayReadyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" + ] + }, + "licenses": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady licenses." + }, + "responseCustomData": { + "type": "string", + "description": "The custom response data." + } + }, + "required": [ + "@odata.type", + "licenses" + ], + "description": "Specifies a configuration for PlayReady licenses." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Specifies that the content key ID is in the PlayReady header." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + ] + }, + "keyId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The content key ID." + } + }, + "required": [ + "@odata.type", + "keyId" + ], + "description": "Specifies that the content key ID is specified in the PlayReady configuration." + }, + "ContentKeyPolicyPlayReadyContentKeyLocation": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + } + ], + "properties": {}, + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { + "type": "object", + "properties": { + "bestEffort": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this restriction is enforced on a Best Effort basis." + }, + "configurationData": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." + } + }, + "required": [ + "bestEffort", + "configurationData" + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "ContentKeyPolicyPlayReadyLicense": { + "type": "object", + "properties": { + "allowTestDevices": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether test devices can use the license." + }, + "beginDate": { + "type": "string", + "format": "date-time", + "description": "The begin date of license" + }, + "contentKeyLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "contentType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Unspecified", + "UltraVioletDownload", + "UltraVioletStreaming" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady content type." + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "The expiration date of license." + }, + "gracePeriod": { + "type": "string", + "format": "duration", + "description": "The grace period of license." + }, + "licenseType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NonPersistent", + "Persistent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The license type." + }, + "playRight": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Play Right in the PlayReady 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." + } + }, + "required": [ + "allowTestDevices", + "contentKeyLocation", + "contentType", + "licenseType" + ], + "description": "The PlayReady license" + }, + "ContentKeyPolicyPlayReadyPlayRight": { + "type": "object", + "properties": { + "agcAndColorStripeRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." + }, + "allowPassingVideoContentToUnknownOutput": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NotAllowed", + "Allowed", + "AllowedWithVideoConstriction" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Unknown output handling settings of the license." + }, + "analogVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital video." + }, + "digitalVideoOnlyContentRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "explicitAnalogTelevisionOutputRestriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "firstPlayExpiration": { + "type": "string", + "format": "duration", + "description": "The amount of time that the license is valid after the license is first used to play content." + }, + "imageConstraintForAnalogComponentVideoRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "imageConstraintForAnalogComputerMonitorRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "scmsRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." + }, + "uncompressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital audio." + }, + "uncompressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital video." + } + }, + "required": [ + "allowPassingVideoContentToUnknownOutput", + "digitalVideoOnlyContentRestriction", + "imageConstraintForAnalogComponentVideoRestriction", + "imageConstraintForAnalogComputerMonitorRestriction" + ], + "description": "Configures the Play Right in the PlayReady license." + }, + "ContentKeyPolicyProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for the Policy." + }, + "options": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyOption" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Key Policy options." + } + }, + "required": [ + "options" + ], + "description": "The properties of the Content Key Policy." + }, + "ContentKeyPolicyRestriction": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyOpenRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyTokenRestriction" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + }, + "ContentKeyPolicyRestrictionTokenKey": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicySymmetricTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyRsaTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyX509CertificateTokenKey" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "ContentKeyPolicyRsaTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" + ] + }, + "exponent": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter exponent" + }, + "modulus": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter modulus" + } + }, + "required": [ + "@odata.type", + "exponent", + "modulus" + ], + "description": "Specifies a RSA key for token validation" + }, + "ContentKeyPolicySymmetricTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" + ] + }, + "keyValue": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key value of the key" + } + }, + "required": [ + "@odata.type", + "keyValue" + ], + "description": "Specifies a symmetric key for token validation." + }, + "ContentKeyPolicyTokenClaim": { + "type": "object", + "properties": { + "claimType": { + "type": "string", + "description": "Token claim type." + }, + "claimValue": { + "type": "string", + "description": "Token claim value." + } + }, + "description": "Represents a token claim." + }, + "ContentKeyPolicyTokenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyTokenRestriction" + ] + }, + "alternateVerificationKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of alternative verification keys." + }, + "audience": { + "type": "string", + "description": "The audience for the token." + }, + "issuer": { + "type": "string", + "description": "The token issuer." + }, + "openIdConnectDiscoveryDocument": { + "type": "string", + "description": "The OpenID connect discovery document." + }, + "primaryVerificationKey": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "requiredClaims": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyTokenClaim" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of required token claims." + }, + "restrictionTokenType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Swt", + "Jwt" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of token." + } + }, + "required": [ + "@odata.type", + "audience", + "issuer", + "primaryVerificationKey", + "restrictionTokenType" + ], + "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." + }, + "ContentKeyPolicyUnknownConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." + }, + "ContentKeyPolicyUnknownRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." + }, + "ContentKeyPolicyWidevineConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" + ] + }, + "widevineTemplate": { + "type": "string", + "description": "The Widevine template." + } + }, + "required": [ + "@odata.type", + "widevineTemplate" + ], + "description": "Specifies a configuration for Widevine licenses." + }, + "ContentKeyPolicyX509CertificateTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" + ] + }, + "rawBody": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" + } + }, + "required": [ + "@odata.type", + "rawBody" + ], + "description": "Specifies a certificate for token validation." + }, + "CopyAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyAudio" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input audio bitstream." + }, + "CopyVideo": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyVideo" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." + }, + "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." + }, + "DefaultKey": { + "type": "object", + "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" + } + }, + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "Deinterlace": { + "type": "object", + "properties": { + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Off", + "AutoPixelAdaptive" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." + }, + "parity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "TopFieldFirst", + "BottomFieldFirst" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The field parity for de-interlacing, defaults to Auto." + } + }, + "description": "Describes the de-interlacing settings." + }, + "EnabledProtocols": { + "type": "object", + "properties": { + "dash": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Dash protocol or not" + }, + "download": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Download protocol or not" + }, + "hls": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Hls protocol or not" + }, + "smoothStreaming": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable SmoothStreaming protocol or not" + } + }, + "required": [ + "dash", + "download", + "hls", + "smoothStreaming" + ], + "description": "Class to specify which protocols are enabled" + }, + "EnvelopeEncryption": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "customLicenseAcquisitionUrlTemplate": { + "type": "string", + "description": "LicenseAcquisitionUrlTemplate is used to point to user specified service to delivery content keys" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "Filters": { + "type": "object", + "properties": { + "crop": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "deinterlace": { + "oneOf": [ + { + "$ref": "#/definitions/Deinterlace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the de-interlacing settings." + }, + "overlays": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Overlay" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." + }, + "rotation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "None", + "Rotate0", + "Rotate90", + "Rotate180", + "Rotate270" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto." + } + }, + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "Format": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ImageFormat" + }, + { + "$ref": "#/definitions/MultiBitrateFormat" + } + ], + "properties": { + "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." + } + }, + "description": "Base class for output." + }, + "H264Layer": { + "type": "object", + "properties": { + "adaptiveBFrame": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." + }, + "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)." + }, + "entropyMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Cabac", + "Cavlc" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + }, + "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." + }, + "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." + }, + "maxBitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "Baseline", + "Main", + "High", + "High422", + "High444" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Which profile of the H.264 standard should be used when encoding this layer. Default is Auto." + }, + "referenceFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "slices": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + } + }, + "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": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.H264Video" + ] + }, + "complexity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/H264Layer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of output H.264 layers to be produced by the encoder." + }, + "sceneChangeDetection": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the properties for encoding a video with the H.264 codec." + }, + "Hls": { + "type": "object", + "properties": { + "fragmentsPerTsSegment": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." + } + }, + "description": "The HLS configuration." + }, + "Image": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgImage" + }, + { + "$ref": "#/definitions/PngImage" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Image" + ] + }, + "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%)." + }, + "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%)." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties for generating thumbnails from the input video" + }, + "ImageFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgFormat" + }, + { + "$ref": "#/definitions/PngFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ImageFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output image file." + }, + "IPAccessControl": { + "type": "object", + "properties": { + "allow": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "IPRange": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The IP address." + }, + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, + "subnetPrefixLength": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The subnet mask prefix length (see CIDR notation)." + } + }, + "description": "The IP address range in the CIDR scheme." + }, + "JobInput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputClip" + }, + { + "$ref": "#/definitions/JobInputs" + } + ], + "properties": { + "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'." + } + }, + "description": "Base class for inputs to a Job." + }, + "JobInputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the input Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset for input into a Job." + }, + "JobInputClip": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputAsset" + }, + { + "$ref": "#/definitions/JobInputHttp" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputClip" + ] + }, + "files": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of files. Required for JobInputHttp." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents input files for a Job." + }, + "JobInputHttp": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputHttp" + ] + }, + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents HTTPS job input." + }, + "JobInputs": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputs" + ] + }, + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobInput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of inputs to a Job." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes a list of inputs to a Job." + }, + "JobOutput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobOutputAsset" + } + ], + "properties": {}, + "description": "Describes all the properties of a JobOutput." + }, + "JobOutputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobOutputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the output Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset used as a JobOutput." + }, + "JobProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Optional customer supplied description of the Job." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/JobInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for inputs to a Job." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The outputs for the Job." + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "input", + "outputs" + ], + "description": "Properties of the Job." + }, + "JpgFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing JPEG thumbnails." + }, + "JpgImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JpgLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output JPEG image layers to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of JPEG images from the input video." + }, + "JpgLayer": { + "type": "object", + "properties": { + "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." + }, + "quality": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." + }, + "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." + } + }, + "description": "Describes the settings to produce a JPEG image from the input video." + }, + "LiveEventEncoding": { + "type": "object", + "properties": { + "encodingType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Basic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding type for Live Event." + }, + "presetName": { + "type": "string", + "description": "The encoding preset name." + } + }, + "description": "The Live Event encoding." + }, + "LiveEventEndpoint": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The Live Event endpoint." + }, + "LiveEventInput": { + "type": "object", + "properties": { + "accessToken": { + "type": "string", + "description": "The access token." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The input endpoints for the Live Event." + }, + "keyFrameIntervalDuration": { + "type": "string", + "description": "ISO 8601 timespan duration of the key frame interval duration." + }, + "streamingProtocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FragmentedMP4", + "RTMP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming protocol for the Live Event." + } + }, + "required": [ + "streamingProtocol" + ], + "description": "The Live Event input." + }, + "LiveEventPreview": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreviewAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for Live Event preview." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The endpoints for 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." + }, + "LiveEventPreviewAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for Live Event preview." + }, + "LiveEventProperties": { + "type": "object", + "properties": { + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "description": { + "type": "string", + "description": "The Live Event description." + }, + "encoding": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventEncoding" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event encoding." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event input." + }, + "preview": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreview" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event preview." + }, + "streamOptions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Default", + "LowLatency" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The stream options." + }, + "vanityUrl": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event vanity URL flag." + } + }, + "required": [ + "input" + ], + "description": "The Live Event properties." + }, + "LiveOutputProperties": { + "type": "object", + "properties": { + "archiveWindowLength": { + "type": "string", + "format": "duration", + "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." + }, + "assetName": { + "type": "string", + "description": "The asset name." + }, + "description": { + "type": "string", + "description": "The description of the Live Output." + }, + "hls": { + "oneOf": [ + { + "$ref": "#/definitions/Hls" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The HLS configuration." + }, + "manifestName": { + "type": "string", + "description": "The manifest file name." + }, + "outputSnapTime": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The output snapshot time." + } + }, + "required": [ + "archiveWindowLength", + "assetName" + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "MediaServiceProperties": { + "type": "object", + "properties": { + "storageAccounts": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StorageAccount" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage accounts for this resource." + } + }, + "description": "Properties of the Media Services account." + }, + "mediaServices_assets_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "type": { + "type": "string", + "enum": [ + "assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Locator" + }, + "type": { + "type": "string", + "enum": [ + "streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "type": { + "type": "string", + "enum": [ + "transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-03-30-preview" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + }, + "Mp4Format": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Mp4Format" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output ISO MP4 file." + }, + "MultiBitrateFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Mp4Format" + }, + { + "$ref": "#/definitions/TransportStreamFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MultiBitrateFormat" + ] + }, + "outputFiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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 ." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "NoEncryption": { + "type": "object", + "properties": { + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for NoEncryption scheme" + }, + "OutputFile": { + "type": "object", + "properties": { + "labels": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "description": "Represents an output file produced." + }, + "Overlay": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioOverlay" + }, + { + "$ref": "#/definitions/VideoOverlay" + } + ], + "properties": { + "audioGainLevel": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." + }, + "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)." + }, + "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." + } + }, + "description": "Base type for all overlays - image, audio or video." + }, + "PngFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing PNG thumbnails." + }, + "PngImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/PngLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output PNG image layers to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of PNG images from the input video." + }, + "PngLayer": { + "type": "object", + "properties": { + "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." + }, + "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." + } + }, + "description": "Describes the settings to produce a PNG image from the input video." + }, + "Preset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioAnalyzerPreset" + }, + { + "$ref": "#/definitions/BuiltInStandardEncoderPreset" + }, + { + "$ref": "#/definitions/StandardEncoderPreset" + } + ], + "properties": {}, + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "Rectangle": { + "type": "object", + "properties": { + "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%)." + }, + "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%)." + } + }, + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "StandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.StandardEncoderPreset" + ] + }, + "codecs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Codec" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of codecs to be used when encoding the input video." + }, + "filters": { + "oneOf": [ + { + "$ref": "#/definitions/Filters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "formats": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Format" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of outputs to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." + }, + "StorageAccount": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Primary", + "Secondary" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the storage account." + } + }, + "required": [ + "type" + ], + "description": "The storage account details." + }, + "StreamingEndpointAccessControl": { + "type": "object", + "properties": { + "akamai": { + "oneOf": [ + { + "$ref": "#/definitions/AkamaiAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Akamai access control" + }, + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "StreamingEndpoint access control definition." + }, + "StreamingEndpointProperties": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "StreamingEndpoint access control definition." + }, + "availabilitySetName": { + "type": "string", + "description": "AvailabilitySet name" + }, + "cdnEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The CDN enabled flag." + }, + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "customHostNames": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The custom host names of the StreamingEndpoint" + }, + "description": { + "type": "string", + "description": "The StreamingEndpoint description." + }, + "maxCacheAge": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max cache age" + }, + "scaleUnits": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of scale units." + } + }, + "description": "The StreamingEndpoint properties." + }, + "StreamingLocatorProperties": { + "type": "object", + "properties": { + "assetName": { + "type": "string", + "description": "Asset Name" + }, + "contentKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorUserDefinedContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ContentKeys used by this Streaming Locator" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKeyPolicy used by this Streaming Locator" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "EndTime of Streaming Locator" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "StartTime of Streaming Locator" + }, + "streamingLocatorId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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'" + } + }, + "required": [ + "assetName", + "streamingPolicyName" + ], + "description": "Class to specify properties of Streaming Locator" + }, + "StreamingLocatorUserDefinedContentKey": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ID of Content Key" + }, + "label": { + "type": "string", + "description": "The Content Key description" + }, + "value": { + "type": "string", + "description": "The Content Key secret" + } + }, + "required": [ + "id" + ], + "description": "Describes the properties of a user-defined content key in the Streaming Locator" + }, + "StreamingPolicyContentKey": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tracks which use this content key" + } + }, + "description": "Class to specify properties of content key" + }, + "StreamingPolicyContentKeys": { + "type": "object", + "properties": { + "defaultKey": { + "oneOf": [ + { + "$ref": "#/definitions/DefaultKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "keyToTrackMappings": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPolicyContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing tracks needs separate content key" + } + }, + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "StreamingPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "allowPersistentLicense": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "All license to be persistent or not" + }, + "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." + } + }, + "required": [ + "allowPersistentLicense" + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "StreamingPolicyPlayReadyConfiguration": { + "type": "object", + "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" + } + }, + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "StreamingPolicyProperties": { + "type": "object", + "properties": { + "commonEncryptionCbcs": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCbcs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "commonEncryptionCenc": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCenc" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for envelope encryption scheme" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKey used by current Streaming Policy" + }, + "envelopeEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/EnvelopeEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "noEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/NoEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for NoEncryption scheme" + } + }, + "description": "Class to specify properties of Streaming Policy" + }, + "StreamingPolicyWidevineConfiguration": { + "type": "object", + "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." + } + }, + "description": "Class to specify configurations of Widevine in Streaming Policy" + }, + "TrackPropertyCondition": { + "type": "object", + "properties": { + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Equal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property condition operation." + }, + "property": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "FourCC" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property type." + }, + "value": { + "type": "string", + "description": "Track property value" + } + }, + "required": [ + "operation", + "property" + ], + "description": "Class to specify one track property condition" + }, + "TrackSelection": { + "type": "object", + "properties": { + "trackSelections": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackPropertyCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "TrackSelections is a track property condition list which can specify track(s)" + } + }, + "description": "Class to select a track" + }, + "TransformOutput": { + "type": "object", + "properties": { + "onError": { + "oneOf": [ + { + "type": "string", + "enum": [ + "StopProcessingJob", + "ContinueJob" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "preset": { + "oneOf": [ + { + "$ref": "#/definitions/Preset" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "relativePriority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "preset" + ], + "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." + }, + "TransformProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An optional verbose description of the Transform." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TransformOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of one or more TransformOutputs that the Transform should generate." + } + }, + "required": [ + "outputs" + ], + "description": "A Transform." + }, + "TransportStreamFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.TransportStreamFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." + }, + "Video": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Image" + }, + { + "$ref": "#/definitions/H264Video" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Video" + ] + }, + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties for encoding the input video." + }, + "VideoAnalyzerPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoAnalyzerPreset" + ] + }, + "audioInsightsOnly": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether to only extract audio insights when processing a video file." + } + }, + "required": [ + "@odata.type" + ], + "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." + }, + "VideoOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoOverlay" + ] + }, + "cropRectangle": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "opacity": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "position": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of a video overlay." + } + } +} diff --git a/schemas/2018-06-01-preview/Microsoft.Media.json b/schemas/2018-06-01-preview/Microsoft.Media.json new file mode 100644 index 0000000000..0c2bd6e667 --- /dev/null +++ b/schemas/2018-06-01-preview/Microsoft.Media.json @@ -0,0 +1,4370 @@ +{ + "id": "https://schema.management.azure.com/schemas/2018-06-01-preview/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaservices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "type": "string", + "description": "The Media Services account name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaServiceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Media Services account." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_assets_childResource" + }, + { + "$ref": "#/definitions/mediaServices_contentKeyPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_transforms_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingLocators_childResource" + }, + { + "$ref": "#/definitions/mediaservices_liveEvents_childResource" + }, + { + "$ref": "#/definitions/mediaservices_streamingEndpoints_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices" + }, + "mediaServices_assets": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaservices_liveEvents_liveOutputs_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Locator" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_transforms_jobs_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms/jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + } + }, + "definitions": { + "AacAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AacAudio" + ] + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AacLc", + "HeAacV1", + "HeAacV2" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding profile to be used when encoding audio with AAC." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." + }, + "AkamaiAccessControl": { + "type": "object", + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "AkamaiSignatureHeaderAuthenticationKey": { + "type": "object", + "properties": { + "base64Key": { + "type": "string", + "description": "authentication key" + }, + "expiration": { + "type": "string", + "format": "date-time", + "description": "The exact time the authentication key." + }, + "identifier": { + "type": "string", + "description": "identifier of the key" + } + }, + "description": "Akamai Signature Header authentication key." + }, + "AssetProperties": { + "type": "object", + "properties": { + "alternateId": { + "type": "string", + "description": "The alternate ID of the Asset." + }, + "container": { + "type": "string", + "description": "The name of the asset blob container." + }, + "description": { + "type": "string", + "description": "The Asset description." + }, + "storageAccountName": { + "type": "string", + "description": "The name of the storage account." + } + }, + "description": "The Asset properties." + }, + "Audio": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AacAudio" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Audio" + ] + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The bitrate, in bits per second, of the output encoded audio." + }, + "channels": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of channels in the audio." + }, + "samplingRate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sampling rate to use for encoding in hertz." + } + }, + "required": [ + "@odata.type" + ], + "description": "Defines the common properties for all audio codecs." + }, + "AudioAnalyzerPreset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/VideoAnalyzerPreset" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioAnalyzerPreset" + ] + }, + "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'." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "AudioOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioOverlay" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of an audio overlay." + }, + "BuiltInStandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.BuiltInStandardEncoderPreset" + ] + }, + "presetName": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AdaptiveStreaming", + "AACGoodQualityAudio", + "H264MultipleBitrate1080p", + "H264MultipleBitrate720p", + "H264MultipleBitrateSD" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The built-in preset to be used for encoding videos." + } + }, + "required": [ + "@odata.type", + "presetName" + ], + "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." + }, + "CbcsDrmConfiguration": { + "type": "object", + "properties": { + "fairPlay": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "CencDrmConfiguration": { + "type": "object", + "properties": { + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "Codec": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Audio" + }, + { + "$ref": "#/definitions/CopyVideo" + }, + { + "$ref": "#/definitions/Video" + }, + { + "$ref": "#/definitions/CopyAudio" + } + ], + "properties": { + "label": { + "type": "string", + "description": "An optional label for the codec. The label can be used to control muxing behavior." + } + }, + "description": "Describes the basic properties of all codecs." + }, + "CommonEncryptionCbcs": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CbcsDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "CommonEncryptionCenc": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CencDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for envelope encryption scheme" + }, + "ContentKeyPolicyClearKeyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a configuration for non-DRM keys." + }, + "ContentKeyPolicyConfiguration": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyClearKeyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyWidevineConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyFairPlayConfiguration" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "ContentKeyPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" + ] + }, + "ask": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key that must be used as FairPlay ASk." + }, + "fairPlayPfx": { + "type": "string", + "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." + }, + "fairPlayPfxPassword": { + "type": "string", + "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." + }, + "rentalAndLeaseKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Undefined", + "PersistentUnlimited", + "PersistentLimited" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental and lease key type." + }, + "rentalDuration": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental duration. Must be greater than or equal to 0." + } + }, + "required": [ + "@odata.type", + "ask", + "fairPlayPfx", + "fairPlayPfxPassword", + "rentalAndLeaseKeyType", + "rentalDuration" + ], + "description": "Specifies a configuration for FairPlay licenses." + }, + "ContentKeyPolicyOpenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents an open restriction. License or key will be delivered on every request." + }, + "ContentKeyPolicyOption": { + "type": "object", + "properties": { + "configuration": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "name": { + "type": "string", + "description": "The Policy Option description." + }, + "restriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + } + }, + "required": [ + "configuration", + "restriction" + ], + "description": "Represents a policy option." + }, + "ContentKeyPolicyPlayReadyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" + ] + }, + "licenses": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady licenses." + }, + "responseCustomData": { + "type": "string", + "description": "The custom response data." + } + }, + "required": [ + "@odata.type", + "licenses" + ], + "description": "Specifies a configuration for PlayReady licenses." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Specifies that the content key ID is in the PlayReady header." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + ] + }, + "keyId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The content key ID." + } + }, + "required": [ + "@odata.type", + "keyId" + ], + "description": "Specifies that the content key ID is specified in the PlayReady configuration." + }, + "ContentKeyPolicyPlayReadyContentKeyLocation": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + } + ], + "properties": {}, + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { + "type": "object", + "properties": { + "bestEffort": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this restriction is enforced on a Best Effort basis." + }, + "configurationData": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." + } + }, + "required": [ + "bestEffort", + "configurationData" + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "ContentKeyPolicyPlayReadyLicense": { + "type": "object", + "properties": { + "allowTestDevices": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether test devices can use the license." + }, + "beginDate": { + "type": "string", + "format": "date-time", + "description": "The begin date of license" + }, + "contentKeyLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "contentType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Unspecified", + "UltraVioletDownload", + "UltraVioletStreaming" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady content type." + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "The expiration date of license." + }, + "gracePeriod": { + "type": "string", + "format": "duration", + "description": "The grace period of license." + }, + "licenseType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NonPersistent", + "Persistent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The license type." + }, + "playRight": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Play Right in the PlayReady 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." + } + }, + "required": [ + "allowTestDevices", + "contentKeyLocation", + "contentType", + "licenseType" + ], + "description": "The PlayReady license" + }, + "ContentKeyPolicyPlayReadyPlayRight": { + "type": "object", + "properties": { + "agcAndColorStripeRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." + }, + "allowPassingVideoContentToUnknownOutput": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NotAllowed", + "Allowed", + "AllowedWithVideoConstriction" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Unknown output handling settings of the license." + }, + "analogVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital video." + }, + "digitalVideoOnlyContentRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "explicitAnalogTelevisionOutputRestriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "firstPlayExpiration": { + "type": "string", + "format": "duration", + "description": "The amount of time that the license is valid after the license is first used to play content." + }, + "imageConstraintForAnalogComponentVideoRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "imageConstraintForAnalogComputerMonitorRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "scmsRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." + }, + "uncompressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital audio." + }, + "uncompressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital video." + } + }, + "required": [ + "allowPassingVideoContentToUnknownOutput", + "digitalVideoOnlyContentRestriction", + "imageConstraintForAnalogComponentVideoRestriction", + "imageConstraintForAnalogComputerMonitorRestriction" + ], + "description": "Configures the Play Right in the PlayReady license." + }, + "ContentKeyPolicyProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for the Policy." + }, + "options": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyOption" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Key Policy options." + } + }, + "required": [ + "options" + ], + "description": "The properties of the Content Key Policy." + }, + "ContentKeyPolicyRestriction": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyOpenRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyTokenRestriction" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + }, + "ContentKeyPolicyRestrictionTokenKey": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicySymmetricTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyRsaTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyX509CertificateTokenKey" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "ContentKeyPolicyRsaTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" + ] + }, + "exponent": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter exponent" + }, + "modulus": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter modulus" + } + }, + "required": [ + "@odata.type", + "exponent", + "modulus" + ], + "description": "Specifies a RSA key for token validation" + }, + "ContentKeyPolicySymmetricTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" + ] + }, + "keyValue": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key value of the key" + } + }, + "required": [ + "@odata.type", + "keyValue" + ], + "description": "Specifies a symmetric key for token validation." + }, + "ContentKeyPolicyTokenClaim": { + "type": "object", + "properties": { + "claimType": { + "type": "string", + "description": "Token claim type." + }, + "claimValue": { + "type": "string", + "description": "Token claim value." + } + }, + "description": "Represents a token claim." + }, + "ContentKeyPolicyTokenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyTokenRestriction" + ] + }, + "alternateVerificationKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of alternative verification keys." + }, + "audience": { + "type": "string", + "description": "The audience for the token." + }, + "issuer": { + "type": "string", + "description": "The token issuer." + }, + "openIdConnectDiscoveryDocument": { + "type": "string", + "description": "The OpenID connect discovery document." + }, + "primaryVerificationKey": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "requiredClaims": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyTokenClaim" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of required token claims." + }, + "restrictionTokenType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Swt", + "Jwt" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of token." + } + }, + "required": [ + "@odata.type", + "audience", + "issuer", + "primaryVerificationKey", + "restrictionTokenType" + ], + "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." + }, + "ContentKeyPolicyUnknownConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." + }, + "ContentKeyPolicyUnknownRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." + }, + "ContentKeyPolicyWidevineConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" + ] + }, + "widevineTemplate": { + "type": "string", + "description": "The Widevine template." + } + }, + "required": [ + "@odata.type", + "widevineTemplate" + ], + "description": "Specifies a configuration for Widevine licenses." + }, + "ContentKeyPolicyX509CertificateTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" + ] + }, + "rawBody": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" + } + }, + "required": [ + "@odata.type", + "rawBody" + ], + "description": "Specifies a certificate for token validation." + }, + "CopyAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyAudio" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input audio bitstream." + }, + "CopyVideo": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyVideo" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." + }, + "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." + }, + "DefaultKey": { + "type": "object", + "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" + } + }, + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "Deinterlace": { + "type": "object", + "properties": { + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Off", + "AutoPixelAdaptive" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." + }, + "parity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "TopFieldFirst", + "BottomFieldFirst" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The field parity for de-interlacing, defaults to Auto." + } + }, + "description": "Describes the de-interlacing settings." + }, + "EnabledProtocols": { + "type": "object", + "properties": { + "dash": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable DASH protocol or not" + }, + "download": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Download protocol or not" + }, + "hls": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable HLS protocol or not" + }, + "smoothStreaming": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable SmoothStreaming protocol or not" + } + }, + "required": [ + "dash", + "download", + "hls", + "smoothStreaming" + ], + "description": "Class to specify which protocols are enabled" + }, + "EnvelopeEncryption": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "customKeyAcquisitionUrlTemplate": { + "type": "string", + "description": "KeyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "Filters": { + "type": "object", + "properties": { + "crop": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "deinterlace": { + "oneOf": [ + { + "$ref": "#/definitions/Deinterlace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the de-interlacing settings." + }, + "overlays": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Overlay" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." + }, + "rotation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "None", + "Rotate0", + "Rotate90", + "Rotate180", + "Rotate270" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto." + } + }, + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "Format": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ImageFormat" + }, + { + "$ref": "#/definitions/MultiBitrateFormat" + } + ], + "properties": { + "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." + } + }, + "description": "Base class for output." + }, + "H264Layer": { + "type": "object", + "properties": { + "adaptiveBFrame": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." + }, + "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)." + }, + "entropyMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Cabac", + "Cavlc" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + }, + "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." + }, + "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." + }, + "maxBitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "Baseline", + "Main", + "High", + "High422", + "High444" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Which profile of the H.264 standard should be used when encoding this layer. Default is Auto." + }, + "referenceFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "slices": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + } + }, + "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": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.H264Video" + ] + }, + "complexity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/H264Layer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of output H.264 layers to be produced by the encoder." + }, + "sceneChangeDetection": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the properties for encoding a video with the H.264 codec." + }, + "Hls": { + "type": "object", + "properties": { + "fragmentsPerTsSegment": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." + } + }, + "description": "The HLS configuration." + }, + "Image": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgImage" + }, + { + "$ref": "#/definitions/PngImage" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Image" + ] + }, + "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%)." + }, + "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%)." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties for generating thumbnails from the input video" + }, + "ImageFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgFormat" + }, + { + "$ref": "#/definitions/PngFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ImageFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output image file." + }, + "IPAccessControl": { + "type": "object", + "properties": { + "allow": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "IPRange": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The IP address." + }, + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, + "subnetPrefixLength": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The subnet mask prefix length (see CIDR notation)." + } + }, + "description": "The IP address range in the CIDR scheme." + }, + "JobInput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputClip" + }, + { + "$ref": "#/definitions/JobInputs" + } + ], + "properties": { + "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'." + } + }, + "description": "Base class for inputs to a Job." + }, + "JobInputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the input Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset for input into a Job." + }, + "JobInputClip": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputAsset" + }, + { + "$ref": "#/definitions/JobInputHttp" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputClip" + ] + }, + "files": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of files. Required for JobInputHttp." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents input files for a Job." + }, + "JobInputHttp": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputHttp" + ] + }, + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents HTTPS job input." + }, + "JobInputs": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputs" + ] + }, + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobInput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of inputs to a Job." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes a list of inputs to a Job." + }, + "JobOutput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobOutputAsset" + } + ], + "properties": {}, + "description": "Describes all the properties of a JobOutput." + }, + "JobOutputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobOutputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the output Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset used as a JobOutput." + }, + "JobProperties": { + "type": "object", + "properties": { + "correlationData": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Customer provided correlation data that will be returned in Job completed events." + }, + "description": { + "type": "string", + "description": "Optional customer supplied description of the Job." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/JobInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for inputs to a Job." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The outputs for the Job." + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "input", + "outputs" + ], + "description": "Properties of the Job." + }, + "JpgFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing JPEG thumbnails." + }, + "JpgImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JpgLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output JPEG image layers to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of JPEG images from the input video." + }, + "JpgLayer": { + "type": "object", + "properties": { + "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." + }, + "quality": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." + }, + "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." + } + }, + "description": "Describes the settings to produce a JPEG image from the input video." + }, + "LiveEventEncoding": { + "type": "object", + "properties": { + "encodingType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Basic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding type for Live Event." + }, + "presetName": { + "type": "string", + "description": "The encoding preset name." + } + }, + "description": "The Live Event encoding." + }, + "LiveEventEndpoint": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The Live Event endpoint." + }, + "LiveEventInput": { + "type": "object", + "properties": { + "accessToken": { + "type": "string", + "description": "The access token." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The input endpoints for the Live Event." + }, + "keyFrameIntervalDuration": { + "type": "string", + "description": "ISO 8601 timespan duration of the key frame interval duration." + }, + "streamingProtocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FragmentedMP4", + "RTMP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming protocol for the Live Event." + } + }, + "required": [ + "streamingProtocol" + ], + "description": "The Live Event input." + }, + "LiveEventPreview": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreviewAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for Live Event 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." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The endpoints for 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." + }, + "LiveEventPreviewAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for Live Event preview." + }, + "LiveEventProperties": { + "type": "object", + "properties": { + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "description": { + "type": "string", + "description": "The Live Event description." + }, + "encoding": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventEncoding" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event encoding." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event input." + }, + "preview": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreview" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event preview." + }, + "streamOptions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Default", + "LowLatency" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The stream options." + }, + "vanityUrl": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event vanity URL flag." + } + }, + "required": [ + "input" + ], + "description": "The Live Event properties." + }, + "LiveOutputProperties": { + "type": "object", + "properties": { + "archiveWindowLength": { + "type": "string", + "format": "duration", + "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." + }, + "assetName": { + "type": "string", + "description": "The asset name." + }, + "description": { + "type": "string", + "description": "The description of the Live Output." + }, + "hls": { + "oneOf": [ + { + "$ref": "#/definitions/Hls" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The HLS configuration." + }, + "manifestName": { + "type": "string", + "description": "The manifest file name." + }, + "outputSnapTime": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The output snapshot time." + } + }, + "required": [ + "archiveWindowLength", + "assetName" + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "MediaServiceProperties": { + "type": "object", + "properties": { + "storageAccounts": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StorageAccount" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage accounts for this resource." + } + }, + "description": "Properties of the Media Services account." + }, + "mediaServices_assets_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "type": { + "type": "string", + "enum": [ + "assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Locator" + }, + "type": { + "type": "string", + "enum": [ + "streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "type": { + "type": "string", + "enum": [ + "transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-06-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + }, + "Mp4Format": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Mp4Format" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output ISO MP4 file." + }, + "MultiBitrateFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Mp4Format" + }, + { + "$ref": "#/definitions/TransportStreamFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MultiBitrateFormat" + ] + }, + "outputFiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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 ." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "NoEncryption": { + "type": "object", + "properties": { + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for NoEncryption scheme" + }, + "OutputFile": { + "type": "object", + "properties": { + "labels": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "description": "Represents an output file produced." + }, + "Overlay": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioOverlay" + }, + { + "$ref": "#/definitions/VideoOverlay" + } + ], + "properties": { + "audioGainLevel": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." + }, + "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)." + }, + "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." + } + }, + "description": "Base type for all overlays - image, audio or video." + }, + "PngFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing PNG thumbnails." + }, + "PngImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/PngLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output PNG image layers to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of PNG images from the input video." + }, + "PngLayer": { + "type": "object", + "properties": { + "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." + }, + "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." + } + }, + "description": "Describes the settings to produce a PNG image from the input video." + }, + "Preset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioAnalyzerPreset" + }, + { + "$ref": "#/definitions/BuiltInStandardEncoderPreset" + }, + { + "$ref": "#/definitions/StandardEncoderPreset" + } + ], + "properties": {}, + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "Rectangle": { + "type": "object", + "properties": { + "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%)." + }, + "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%)." + } + }, + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "StandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.StandardEncoderPreset" + ] + }, + "codecs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Codec" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of codecs to be used when encoding the input video." + }, + "filters": { + "oneOf": [ + { + "$ref": "#/definitions/Filters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "formats": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Format" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of outputs to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." + }, + "StorageAccount": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Primary", + "Secondary" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the storage account." + } + }, + "required": [ + "type" + ], + "description": "The storage account details." + }, + "StreamingEndpointAccessControl": { + "type": "object", + "properties": { + "akamai": { + "oneOf": [ + { + "$ref": "#/definitions/AkamaiAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Akamai access control" + }, + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "StreamingEndpoint access control definition." + }, + "StreamingEndpointProperties": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "StreamingEndpoint access control definition." + }, + "availabilitySetName": { + "type": "string", + "description": "AvailabilitySet name" + }, + "cdnEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The CDN enabled flag." + }, + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "customHostNames": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The custom host names of the StreamingEndpoint" + }, + "description": { + "type": "string", + "description": "The StreamingEndpoint description." + }, + "maxCacheAge": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max cache age" + }, + "scaleUnits": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of scale units." + } + }, + "description": "The StreamingEndpoint properties." + }, + "StreamingLocatorContentKey": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ID of Content Key" + }, + "label": { + "type": "string", + "description": "Label of Content Key" + }, + "tracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tracks which use this Content Key" + }, + "value": { + "type": "string", + "description": "Value of Content Key" + } + }, + "required": [ + "id" + ], + "description": "Class for content key in Streaming Locator" + }, + "StreamingLocatorProperties": { + "type": "object", + "properties": { + "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." + }, + "assetName": { + "type": "string", + "description": "Asset Name" + }, + "contentKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ContentKeys used by this Streaming Locator" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKeyPolicy used by this Streaming Locator" + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "EndTime of Streaming Locator" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "StartTime of Streaming Locator" + }, + "streamingLocatorId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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'" + } + }, + "required": [ + "assetName", + "streamingPolicyName" + ], + "description": "Class to specify properties of Streaming Locator" + }, + "StreamingPolicyContentKey": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tracks which use this content key" + } + }, + "description": "Class to specify properties of content key" + }, + "StreamingPolicyContentKeys": { + "type": "object", + "properties": { + "defaultKey": { + "oneOf": [ + { + "$ref": "#/definitions/DefaultKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "keyToTrackMappings": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPolicyContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing tracks needs separate content key" + } + }, + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "StreamingPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "allowPersistentLicense": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "All license to be persistent or not" + }, + "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." + } + }, + "required": [ + "allowPersistentLicense" + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "StreamingPolicyPlayReadyConfiguration": { + "type": "object", + "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" + } + }, + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "StreamingPolicyProperties": { + "type": "object", + "properties": { + "commonEncryptionCbcs": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCbcs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "commonEncryptionCenc": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCenc" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for envelope encryption scheme" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKey used by current Streaming Policy" + }, + "envelopeEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/EnvelopeEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "noEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/NoEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for NoEncryption scheme" + } + }, + "description": "Class to specify properties of Streaming Policy" + }, + "StreamingPolicyWidevineConfiguration": { + "type": "object", + "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." + } + }, + "description": "Class to specify configurations of Widevine in Streaming Policy" + }, + "TrackPropertyCondition": { + "type": "object", + "properties": { + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Equal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property condition operation." + }, + "property": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "FourCC" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property type." + }, + "value": { + "type": "string", + "description": "Track property value" + } + }, + "required": [ + "operation", + "property" + ], + "description": "Class to specify one track property condition" + }, + "TrackSelection": { + "type": "object", + "properties": { + "trackSelections": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackPropertyCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "TrackSelections is a track property condition list which can specify track(s)" + } + }, + "description": "Class to select a track" + }, + "TransformOutput": { + "type": "object", + "properties": { + "onError": { + "oneOf": [ + { + "type": "string", + "enum": [ + "StopProcessingJob", + "ContinueJob" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "preset": { + "oneOf": [ + { + "$ref": "#/definitions/Preset" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "relativePriority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "preset" + ], + "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." + }, + "TransformProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An optional verbose description of the Transform." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TransformOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of one or more TransformOutputs that the Transform should generate." + } + }, + "required": [ + "outputs" + ], + "description": "A Transform." + }, + "TransportStreamFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.TransportStreamFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." + }, + "Video": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Image" + }, + { + "$ref": "#/definitions/H264Video" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Video" + ] + }, + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties for encoding the input video." + }, + "VideoAnalyzerPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoAnalyzerPreset" + ] + }, + "audioInsightsOnly": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether to only extract audio insights when processing a video file." + } + }, + "required": [ + "@odata.type" + ], + "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." + }, + "VideoOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoOverlay" + ] + }, + "cropRectangle": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "opacity": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "position": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of a video overlay." + } + } +} diff --git a/schemas/2018-07-01/Microsoft.Media.json b/schemas/2018-07-01/Microsoft.Media.json index 896a604ea1..78608f8c56 100644 --- a/schemas/2018-07-01/Microsoft.Media.json +++ b/schemas/2018-07-01/Microsoft.Media.json @@ -4,42 +4,23 @@ "title": "Microsoft.Media", "description": "Microsoft Media Resource Types", "resourceDefinitions": { - "mediaServices": { + "mediaservices": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, "location": { "type": "string", "description": "The Azure Region of the resource." }, + "name": { + "type": "string", + "description": "The Media Services account name." + }, "properties": { "oneOf": [ { @@ -49,48 +30,82 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The resource properties." + "description": "Properties of the Media Services account." }, "resources": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/definitions/mediaServices_streamingEndpoints_childResource" + "$ref": "#/definitions/mediaServices_accountFilters_childResource" + }, + { + "$ref": "#/definitions/mediaServices_assets_childResource" + }, + { + "$ref": "#/definitions/mediaServices_contentKeyPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_transforms_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingPolicies_childResource" }, { - "$ref": "#/definitions/mediaServices_liveEvents_childResource" + "$ref": "#/definitions/mediaServices_streamingLocators_childResource" + }, + { + "$ref": "#/definitions/mediaservices_liveEvents_childResource" + }, + { + "$ref": "#/definitions/mediaservices_streamingEndpoints_childResource" } ] } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices" + "description": "Microsoft.Media/mediaservices" }, "mediaServices_accountFilters": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/accountFilters" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Account Filter name" + }, "properties": { "oneOf": [ { @@ -99,35 +114,37 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/accountFilters" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/accountFilters" }, "mediaServices_assets": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/assets" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Asset name." + }, "properties": { "oneOf": [ { @@ -137,7 +154,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The resource properties." + "description": "The Asset properties." }, "resources": { "type": "array", @@ -148,34 +165,35 @@ } ] } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/assets" }, "mediaServices_assets_assetFilters": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/assets/assetFilters" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Asset Filter name" + }, "properties": { "oneOf": [ { @@ -184,35 +202,37 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets/assetFilters" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/assets/assetFilters" }, "mediaServices_contentKeyPolicies": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/contentKeyPolicies" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, "properties": { "oneOf": [ { @@ -221,61 +241,50 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/contentKeyPolicies" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/contentKeyPolicies" }, - "mediaServices_liveEvents": { + "mediaservices_liveEvents": { "type": "object", "properties": { - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the Live Event." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/liveEvents" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, - "tags": { + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { "oneOf": [ { - "type": "object", - "additionalProperties": { - "type": "string" - } + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags." - }, - "location": { - "type": "string", - "description": "The Azure Region of the resource." + "description": "The name of the Live Event." }, "properties": { "oneOf": [ @@ -293,28 +302,57 @@ "items": { "oneOf": [ { - "$ref": "#/definitions/mediaServices_liveEvents_liveOutputs_childResource" + "$ref": "#/definitions/mediaservices_liveEvents_liveOutputs_childResource" } ] } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/liveEvents" + "description": "Microsoft.Media/mediaservices/liveEvents" }, - "mediaServices_liveEvents_liveOutputs": { + "mediaservices_liveEvents_liveOutputs": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, "name": { "oneOf": [ { "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$" + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -322,18 +360,6 @@ ], "description": "The name of the Live Output." }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/liveEvents/liveOutputs" - ] - }, - "apiVersion": { - "type": "string", - "enum": [ - "2018-07-01" - ] - }, "properties": { "oneOf": [ { @@ -343,25 +369,43 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The Live Output properties." + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/liveEvents/liveOutputs" + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" }, - "mediaServices_streamingEndpoints": { + "mediaservices_streamingEndpoints": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, "name": { "oneOf": [ { "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -369,17 +413,16 @@ ], "description": "The name of the StreamingEndpoint." }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/streamingEndpoints" - ] - }, - "apiVersion": { - "type": "string", - "enum": [ - "2018-07-01" - ] + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." }, "tags": { "oneOf": [ @@ -387,7 +430,8 @@ "type": "object", "additionalProperties": { "type": "string" - } + }, + "properties": {} }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -395,48 +439,34 @@ ], "description": "Resource tags." }, - "location": { + "type": { "type": "string", - "description": "The Azure Region of the resource." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/StreamingEndpointProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The StreamingEndpoint properties." + "enum": [ + "Microsoft.Media/mediaservices/streamingEndpoints" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/streamingEndpoints" + "description": "Microsoft.Media/mediaservices/streamingEndpoints" }, "mediaServices_streamingLocators": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/streamingLocators" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, "properties": { "oneOf": [ { @@ -445,35 +475,37 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "Properties of the Streaming Locator." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingLocators" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/streamingLocators" }, "mediaServices_streamingPolicies": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/streamingPolicies" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, "properties": { "oneOf": [ { @@ -482,35 +514,37 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingPolicies" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/streamingPolicies" }, "mediaServices_transforms": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/transforms" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Transform name." + }, "properties": { "oneOf": [ { @@ -520,7 +554,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The resource properties." + "description": "A Transform." }, "resources": { "type": "array", @@ -531,34 +565,35 @@ } ] } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/transforms" }, "mediaServices_transforms_jobs": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Media/mediaServices/transforms/jobs" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Job name." + }, "properties": { "oneOf": [ { @@ -568,14 +603,20 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The resource properties." + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms/jobs" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/transforms/jobs" } @@ -583,26 +624,13 @@ "definitions": { "AacAudio": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AacAudio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AacAudio" + ] + }, "profile": { "oneOf": [ { @@ -618,9 +646,6 @@ } ], "description": "The encoding profile to be used when encoding audio with AAC." - }, - "@odata.type": { - "type": "string" } }, "required": [ @@ -628,6 +653,27 @@ ], "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." }, + "AbsoluteClipTime": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AbsoluteClipTime" + ] + }, + "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." + } + }, + "required": [ + "@odata.type", + "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." + }, "AkamaiAccessControl": { "type": "object", "properties": { @@ -651,10 +697,6 @@ "AkamaiSignatureHeaderAuthenticationKey": { "type": "object", "properties": { - "identifier": { - "type": "string", - "description": "identifier of the key" - }, "base64Key": { "type": "string", "description": "authentication key" @@ -663,6 +705,10 @@ "type": "string", "format": "date-time", "description": "The expiration time of the authentication key." + }, + "identifier": { + "type": "string", + "description": "identifier of the key" } }, "description": "Akamai Signature Header authentication key." @@ -674,14 +720,14 @@ "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." }, + "description": { + "type": "string", + "description": "The Asset description." + }, "storageAccountName": { "type": "string", "description": "The name of the storage account." @@ -693,47 +739,17 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Audio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/AacAudio" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AacAudio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/AacAudio" } ], "properties": { - "channels": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Audio" + ] + }, + "bitrate": { "oneOf": [ { "type": "integer" @@ -742,9 +758,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The number of channels in the audio." + "description": "The bitrate, in bits per second, of the output encoded audio." }, - "samplingRate": { + "channels": { "oneOf": [ { "type": "integer" @@ -753,9 +769,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The sampling rate to use for encoding in hertz." + "description": "The number of channels in the audio." }, - "bitrate": { + "samplingRate": { "oneOf": [ { "type": "integer" @@ -764,10 +780,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The bitrate, in bits per second, of the output encoded audio." - }, - "@odata.type": { - "type": "string" + "description": "The sampling rate to use for encoding in hertz." } }, "required": [ @@ -779,52 +792,34 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AudioAnalyzerPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/VideoAnalyzerPreset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.VideoAnalyzerPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/VideoAnalyzerPreset" } ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioAnalyzerPreset" + ] + }, "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', 'de-DE', 'ar-EG', 'ru-RU', 'hi-IN'. If not specified, automatic language detection would be employed. This feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to English." + "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" }, - "@odata.type": { - "type": "string" + "experimentalOptions": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" } }, "required": [ @@ -834,28 +829,12 @@ }, "AudioOverlay": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AudioOverlay" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.AudioOverlay" + ] } }, "required": [ @@ -865,26 +844,13 @@ }, "BuiltInStandardEncoderPreset": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.BuiltInStandardEncoderPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.BuiltInStandardEncoderPreset" + ] + }, "presetName": { "oneOf": [ { @@ -895,6 +861,8 @@ "H264SingleBitrate1080p", "AdaptiveStreaming", "AACGoodQualityAudio", + "ContentAwareEncodingExperimental", + "ContentAwareEncoding", "H264MultipleBitrate1080p", "H264MultipleBitrate720p", "H264MultipleBitrateSD" @@ -905,14 +873,11 @@ } ], "description": "The built-in preset to be used for encoding videos." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "presetName", - "@odata.type" + "@odata.type", + "presetName" ], "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." }, @@ -928,7 +893,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "FairPlay configurations" + "description": "Class to specify configurations of FairPlay in Streaming Policy" }, "playReady": { "oneOf": [ @@ -939,7 +904,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "PlayReady configurations" + "description": "Class to specify configurations of PlayReady in Streaming Policy" }, "widevine": { "oneOf": [ @@ -950,7 +915,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Widevine configurations" + "description": "Class to specify configurations of Widevine in Streaming Policy" } }, "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" @@ -967,7 +932,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "PlayReady configurations" + "description": "Class to specify configurations of PlayReady in Streaming Policy" }, "widevine": { "oneOf": [ @@ -978,148 +943,48 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Widevine configurations" + "description": "Class to specify configurations of Widevine in Streaming Policy" } }, "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" }, - "Codec": { + "ClipTime": { "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Codec" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, + "$ref": "#/definitions/AbsoluteClipTime" + } + ], + "properties": {}, + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + }, + "Codec": { + "type": "object", + "oneOf": [ { - "allOf": [ - { - "$ref": "#/definitions/Audio" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Audio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/Audio" }, { - "allOf": [ - { - "$ref": "#/definitions/CopyVideo" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.CopyVideo" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/CopyVideo" }, { - "allOf": [ - { - "$ref": "#/definitions/Video" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Video" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/Video" }, { - "allOf": [ - { - "$ref": "#/definitions/CopyAudio" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.CopyAudio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/CopyAudio" } ], "properties": { "label": { "type": "string", "description": "An optional label for the codec. The label can be used to control muxing behavior." - }, - "@odata.type": { - "type": "string" } }, - "required": [ - "@odata.type" - ], "description": "Describes the basic properties of all codecs." }, "CommonEncryptionCbcs": { "type": "object", "properties": { - "enabledProtocols": { - "oneOf": [ - { - "$ref": "#/definitions/EnabledProtocols" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Representing supported protocols" - }, "clearTracks": { "oneOf": [ { @@ -1143,7 +1008,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + "description": "Class to specify properties of all content keys in Streaming Policy" }, "drm": { "oneOf": [ @@ -1154,14 +1019,8 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configuration of DRMs for current encryption scheme" - } - }, - "description": "Class for CommonEncryptionCbcs encryption scheme" - }, - "CommonEncryptionCenc": { - "type": "object", - "properties": { + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, "enabledProtocols": { "oneOf": [ { @@ -1171,8 +1030,14 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Representing supported protocols" - }, + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "CommonEncryptionCenc": { + "type": "object", + "properties": { "clearTracks": { "oneOf": [ { @@ -1196,7 +1061,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + "description": "Class to specify properties of all content keys in Streaming Policy" }, "drm": { "oneOf": [ @@ -1207,35 +1072,30 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configuration of DRMs for CommonEncryptionCenc encryption scheme" + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" } }, "description": "Class for envelope encryption scheme" }, "ContentKeyPolicyClearKeyConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + ] } }, "required": [ @@ -1247,176 +1107,62 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ContentKeyPolicyConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyClearKeyConfiguration" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyClearKeyConfiguration" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyUnknownConfiguration" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyUnknownConfiguration" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyWidevineConfiguration" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyWidevineConfiguration" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyConfiguration" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyPlayReadyConfiguration" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyFairPlayConfiguration" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/ContentKeyPolicyFairPlayConfiguration" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." }, "ContentKeyPolicyFairPlayConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "ask": { + "@odata.type": { "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" + ] + }, + "ask": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The key that must be used as FairPlay Application Secret key." }, + "fairPlayPfx": { + "type": "string", + "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private 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)." + "offlineRentalConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] }, "rentalAndLeaseKeyType": { "oneOf": [ @@ -1425,6 +1171,7 @@ "enum": [ "Unknown", "Undefined", + "DualExpiry", "PersistentUnlimited", "PersistentLimited" ] @@ -1445,45 +1192,57 @@ } ], "description": "The rental duration. Must be greater than or equal to 0." - }, - "@odata.type": { - "type": "string" } }, "required": [ + "@odata.type", "ask", - "fairPlayPfxPassword", "fairPlayPfx", + "fairPlayPfxPassword", "rentalAndLeaseKeyType", - "rentalDuration", - "@odata.type" + "rentalDuration" ], "description": "Specifies a configuration for FairPlay licenses." }, - "ContentKeyPolicyOpenRestriction": { + "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] + "properties": { + "playbackDurationSeconds": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - } + ], + "description": "Playback duration" + }, + "storageDurationSeconds": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage duration" } - ], + }, + "required": [ + "playbackDurationSeconds", + "storageDurationSeconds" + ] + }, + "ContentKeyPolicyOpenRestriction": { + "type": "object", "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + ] } }, "required": [ @@ -1494,10 +1253,6 @@ "ContentKeyPolicyOption": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "The Policy Option description." - }, "configuration": { "oneOf": [ { @@ -1507,7 +1262,11 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The key delivery configuration." + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "name": { + "type": "string", + "description": "The Policy Option description." }, "restriction": { "oneOf": [ @@ -1518,7 +1277,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The requirements that must be met to deliver keys with this configuration" + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." } }, "required": [ @@ -1529,26 +1288,13 @@ }, "ContentKeyPolicyPlayReadyConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" + ] + }, "licenses": { "oneOf": [ { @@ -1566,41 +1312,22 @@ "responseCustomData": { "type": "string", "description": "The custom response data." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "licenses", - "@odata.type" + "@odata.type", + "licenses" ], "description": "Specifies a configuration for PlayReady licenses." }, "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + ] } }, "required": [ @@ -1610,26 +1337,13 @@ }, "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + ] + }, "keyId": { "oneOf": [ { @@ -1641,14 +1355,11 @@ } ], "description": "The content key ID." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "keyId", - "@odata.type" + "@odata.type", + "keyId" ], "description": "Specifies that the content key ID is specified in the PlayReady configuration." }, @@ -1656,75 +1367,13 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ContentKeyPolicyPlayReadyContentKeyLocation" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base class for content key ID location. A derived class must be used to represent the location." }, "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { @@ -1778,95 +1427,94 @@ "format": "date-time", "description": "The begin date of license" }, - "expirationDate": { - "type": "string", - "format": "date-time", - "description": "The expiration date of license." - }, - "relativeBeginDate": { - "type": "string", - "description": "The relative begin date of license." - }, - "relativeExpirationDate": { - "type": "string", - "description": "The relative expiration date of license." - }, - "gracePeriod": { - "type": "string", - "description": "The grace period of license." - }, - "playRight": { + "contentKeyLocation": { "oneOf": [ { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight" + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The license PlayRight" + "description": "Base class for content key ID location. A derived class must be used to represent the location." }, - "licenseType": { + "contentType": { "oneOf": [ { "type": "string", "enum": [ "Unknown", - "NonPersistent", - "Persistent" + "Unspecified", + "UltraVioletDownload", + "UltraVioletStreaming" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The license type." + "description": "The PlayReady content type." }, - "contentKeyLocation": { + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "The expiration date of license." + }, + "gracePeriod": { + "type": "string", + "format": "duration", + "description": "The grace period of license." + }, + "licenseType": { "oneOf": [ { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + "type": "string", + "enum": [ + "Unknown", + "NonPersistent", + "Persistent" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The content key location." + "description": "The license type." }, - "contentType": { + "playRight": { "oneOf": [ { - "type": "string", - "enum": [ - "Unknown", - "Unspecified", - "UltraVioletDownload", - "UltraVioletStreaming" - ] + "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The PlayReady content type." - } + "description": "Configures the Play Right in the PlayReady 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." + } }, "required": [ "allowTestDevices", - "licenseType", "contentKeyLocation", - "contentType" + "contentType", + "licenseType" ], "description": "The PlayReady license" }, "ContentKeyPolicyPlayReadyPlayRight": { "type": "object", "properties": { - "firstPlayExpiration": { - "type": "string", - "description": "The amount of time that the license is valid after the license is first used to play content." - }, - "scmsRestriction": { + "agcAndColorStripeRestriction": { "oneOf": [ { "type": "integer" @@ -1875,53 +1523,59 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." + "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." }, - "agcAndColorStripeRestriction": { + "allowPassingVideoContentToUnknownOutput": { "oneOf": [ { - "type": "integer" + "type": "string", + "enum": [ + "Unknown", + "NotAllowed", + "Allowed", + "AllowedWithVideoConstriction" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." + "description": "Configures Unknown output handling settings of the license." }, - "explicitAnalogTelevisionOutputRestriction": { + "analogVideoOpl": { "oneOf": [ { - "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive." + "description": "Specifies the output protection level for compressed digital audio." }, - "digitalVideoOnlyContentRestriction": { + "compressedDigitalAudioOpl": { "oneOf": [ { - "type": "boolean" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + "description": "Specifies the output protection level for compressed digital audio." }, - "imageConstraintForAnalogComponentVideoRestriction": { + "compressedDigitalVideoOpl": { "oneOf": [ { - "type": "boolean" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + "description": "Specifies the output protection level for compressed digital video." }, - "imageConstraintForAnalogComputerMonitorRestriction": { + "digitalVideoOnlyContentRestriction": { "oneOf": [ { "type": "boolean" @@ -1932,46 +1586,45 @@ ], "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." }, - "allowPassingVideoContentToUnknownOutput": { + "explicitAnalogTelevisionOutputRestriction": { "oneOf": [ { - "type": "string", - "enum": [ - "Unknown", - "NotAllowed", - "Allowed", - "AllowedWithVideoConstriction" - ] + "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configures Unknown output handling settings of the license." + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." }, - "uncompressedDigitalVideoOpl": { + "firstPlayExpiration": { + "type": "string", + "format": "duration", + "description": "The amount of time that the license is valid after the license is first used to play content." + }, + "imageConstraintForAnalogComponentVideoRestriction": { "oneOf": [ { - "type": "integer" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies the output protection level for uncompressed digital video." + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." }, - "compressedDigitalVideoOpl": { + "imageConstraintForAnalogComputerMonitorRestriction": { "oneOf": [ { - "type": "integer" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies the output protection level for compressed digital video." + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." }, - "analogVideoOpl": { + "scmsRestriction": { "oneOf": [ { "type": "integer" @@ -1980,9 +1633,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies the output protection level for compressed digital audio." + "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." }, - "compressedDigitalAudioOpl": { + "uncompressedDigitalAudioOpl": { "oneOf": [ { "type": "integer" @@ -1991,9 +1644,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies the output protection level for compressed digital audio." + "description": "Specifies the output protection level for uncompressed digital audio." }, - "uncompressedDigitalAudioOpl": { + "uncompressedDigitalVideoOpl": { "oneOf": [ { "type": "integer" @@ -2002,14 +1655,14 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies the output protection level for uncompressed digital audio." + "description": "Specifies the output protection level for uncompressed digital video." } }, "required": [ + "allowPassingVideoContentToUnknownOutput", "digitalVideoOnlyContentRestriction", "imageConstraintForAnalogComponentVideoRestriction", - "imageConstraintForAnalogComputerMonitorRestriction", - "allowPassingVideoContentToUnknownOutput" + "imageConstraintForAnalogComputerMonitorRestriction" ], "description": "Configures the Play Right in the PlayReady license." }, @@ -2044,264 +1697,100 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ContentKeyPolicyRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyOpenRestriction" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyOpenRestriction" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyUnknownRestriction" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyUnknownRestriction" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyTokenRestriction" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyTokenRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/ContentKeyPolicyTokenRestriction" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." }, "ContentKeyPolicyRestrictionTokenKey": { "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ContentKeyPolicyRestrictionTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicySymmetricTokenKey" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicySymmetricTokenKey" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyRsaTokenKey" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ContentKeyPolicyRsaTokenKey" }, { - "allOf": [ - { - "$ref": "#/definitions/ContentKeyPolicyX509CertificateTokenKey" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/ContentKeyPolicyX509CertificateTokenKey" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." }, "ContentKeyPolicyRsaTokenKey": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "exponent": { + "@odata.type": { "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" + ] + }, + "exponent": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The RSA Parameter exponent" }, "modulus": { - "type": "string", + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The RSA Parameter modulus" } }, "required": [ + "@odata.type", "exponent", - "modulus", - "@odata.type" + "modulus" ], "description": "Specifies a RSA key for token validation" }, "ContentKeyPolicySymmetricTokenKey": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "keyValue": { + "@odata.type": { "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" + ] + }, + "keyValue": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The key value of the key" } }, "required": [ - "keyValue", - "@odata.type" + "@odata.type", + "keyValue" ], "description": "Specifies a symmetric key for token validation." }, @@ -2321,58 +1810,49 @@ }, "ContentKeyPolicyTokenRestriction": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyTokenRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "issuer": { - "type": "string", - "description": "The token issuer." - }, - "audience": { + "@odata.type": { "type": "string", - "description": "The audience for the token." + "enum": [ + "#Microsoft.Media.ContentKeyPolicyTokenRestriction" + ] }, - "primaryVerificationKey": { + "alternateVerificationKeys": { "oneOf": [ { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The primary verification key." + "description": "A list of alternative verification keys." }, - "alternateVerificationKeys": { + "audience": { + "type": "string", + "description": "The audience for the token." + }, + "issuer": { + "type": "string", + "description": "The token issuer." + }, + "openIdConnectDiscoveryDocument": { + "type": "string", + "description": "The OpenID connect discovery document." + }, + "primaryVerificationKey": { "oneOf": [ { - "type": "array", - "items": { - "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" - } + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "A list of alternative verification keys." + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." }, "requiredClaims": { "oneOf": [ @@ -2403,48 +1883,25 @@ } ], "description": "The type of token." - }, - "openIdConnectDiscoveryDocument": { - "type": "string", - "description": "The OpenID connect discovery document." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "issuer", + "@odata.type", "audience", + "issuer", "primaryVerificationKey", - "restrictionTokenType", - "@odata.type" + "restrictionTokenType" ], "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." }, "ContentKeyPolicyUnknownConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" + ] } }, "required": [ @@ -2454,28 +1911,12 @@ }, "ContentKeyPolicyUnknownRestriction": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" + ] } }, "required": [ @@ -2485,97 +1926,60 @@ }, "ContentKeyPolicyWidevineConfiguration": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" + ] + }, "widevineTemplate": { "type": "string", "description": "The Widevine template." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "widevineTemplate", - "@odata.type" + "@odata.type", + "widevineTemplate" ], "description": "Specifies a configuration for Widevine licenses." }, "ContentKeyPolicyX509CertificateTokenKey": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "rawBody": { + "@odata.type": { "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" + ] + }, + "rawBody": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" } }, "required": [ - "rawBody", - "@odata.type" + "@odata.type", + "rawBody" ], "description": "Specifies a certificate for token validation." }, "CopyAudio": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.CopyAudio" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.CopyAudio" + ] } }, "required": [ @@ -2585,28 +1989,12 @@ }, "CopyVideo": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.CopyVideo" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.CopyVideo" + ] } }, "required": [ @@ -2645,36 +2033,36 @@ "Deinterlace": { "type": "object", "properties": { - "parity": { + "mode": { "oneOf": [ { "type": "string", "enum": [ - "Auto", - "TopFieldFirst", - "BottomFieldFirst" + "Off", + "AutoPixelAdaptive" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The field parity for de-interlacing, defaults to Auto." + "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." }, - "mode": { + "parity": { "oneOf": [ { "type": "string", "enum": [ - "Off", - "AutoPixelAdaptive" + "Auto", + "TopFieldFirst", + "BottomFieldFirst" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." + "description": "The field parity for de-interlacing, defaults to Auto." } }, "description": "Describes the de-interlacing settings." @@ -2682,7 +2070,7 @@ "EnabledProtocols": { "type": "object", "properties": { - "download": { + "dash": { "oneOf": [ { "type": "boolean" @@ -2691,9 +2079,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Enable Download protocol or not" + "description": "Enable DASH protocol or not" }, - "dash": { + "download": { "oneOf": [ { "type": "boolean" @@ -2702,7 +2090,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Enable DASH protocol or not" + "description": "Enable Download protocol or not" }, "hls": { "oneOf": [ @@ -2728,8 +2116,8 @@ } }, "required": [ - "download", "dash", + "download", "hls", "smoothStreaming" ], @@ -2738,17 +2126,6 @@ "EnvelopeEncryption": { "type": "object", "properties": { - "enabledProtocols": { - "oneOf": [ - { - "$ref": "#/definitions/EnabledProtocols" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Representing supported protocols" - }, "clearTracks": { "oneOf": [ { @@ -2772,48 +2149,74 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Representing default content key for each encryption scheme and separate content keys for specific tracks" + "description": "Class to specify properties of all content keys in Streaming Policy" }, "customKeyAcquisitionUrlTemplate": { "type": "string", - "description": "KeyAcquistionUrlTemplate is used to point to user specified service to delivery content keys" + "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." + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" } }, "description": "Class for EnvelopeEncryption encryption scheme" }, - "Filters": { + "FaceDetectorPreset": { "type": "object", "properties": { - "deinterlace": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.FaceDetectorPreset" + ] + }, + "experimentalOptions": { "oneOf": [ { - "$ref": "#/definitions/Deinterlace" + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The de-interlacing settings." + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" }, - "rotation": { + "resolution": { "oneOf": [ { "type": "string", "enum": [ - "Auto", - "None", - "Rotate0", - "Rotate90", - "Rotate180", - "Rotate270" + "SourceResolution", + "StandardDefinition" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto." - }, + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the settings to be used when analyzing a video in order to detect all the faces present." + }, + "Filters": { + "type": "object", + "properties": { "crop": { "oneOf": [ { @@ -2823,7 +2226,18 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The parameters for the rectangular window with which to crop the input video." + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "deinterlace": { + "oneOf": [ + { + "$ref": "#/definitions/Deinterlace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the de-interlacing settings." }, "overlays": { "oneOf": [ @@ -2838,6 +2252,25 @@ } ], "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." + }, + "rotation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "None", + "Rotate0", + "Rotate90", + "Rotate180", + "Rotate270" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto." } }, "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." @@ -2845,49 +2278,49 @@ "FilterTrackPropertyCondition": { "type": "object", "properties": { - "property": { + "operation": { "oneOf": [ { "type": "string", "enum": [ - "Unknown", - "Type", - "Name", - "Language", - "FourCC", - "Bitrate" + "Equal", + "NotEqual" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The track property type." - }, - "value": { - "type": "string", - "description": "The track proprty value." + "description": "The track property condition operation." }, - "operation": { + "property": { "oneOf": [ { "type": "string", "enum": [ - "Equal", - "NotEqual" + "Unknown", + "Type", + "Name", + "Language", + "FourCC", + "Bitrate" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The track property condition operation." + "description": "The track property type." + }, + "value": { + "type": "string", + "description": "The track property value." } }, "required": [ + "operation", "property", - "value", - "operation" + "value" ], "description": "The class to specify one track property condition." }, @@ -2938,127 +2371,38 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Format" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/ImageFormat" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ImageFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/ImageFormat" }, { - "allOf": [ - { - "$ref": "#/definitions/MultiBitrateFormat" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.MultiBitrateFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/MultiBitrateFormat" } ], "properties": { "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." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "@odata.type" + "filenamePattern" ], "description": "Base class for output." }, "H264Layer": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.H264Layer" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "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." - }, - "bitrate": { + "adaptiveBFrame": { "oneOf": [ { - "type": "integer" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." + "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." }, - "maxBitrate": { + "bFrames": { "oneOf": [ { "type": "integer" @@ -3067,9 +2411,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "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." }, - "bFrames": { + "bitrate": { "oneOf": [ { "type": "integer" @@ -3078,33 +2422,54 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." }, - "frameRate": { + "bufferWindow": { "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." + "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)." }, - "slices": { + "entropyMode": { "oneOf": [ { - "type": "integer" + "type": "string", + "enum": [ + "Cabac", + "Cavlc" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "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." }, - "adaptiveBFrame": { - "oneOf": [ + "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." + }, + "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." + }, + "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." + }, + "maxBitrate": { + "oneOf": [ { - "type": "boolean" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "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." }, "profile": { "oneOf": [ @@ -3123,15 +2488,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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", - "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)." + "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." }, "referenceFrames": { "oneOf": [ @@ -3144,62 +2501,35 @@ ], "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": { + "slices": { "oneOf": [ { - "type": "string", - "enum": [ - "Cabac", - "Cavlc" - ] + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "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." }, - "@odata.type": { - "type": "string" + "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." } }, "required": [ - "@odata.type" + "bitrate" ], "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": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.H264Video" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "sceneChangeDetection": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "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." + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.H264Video" + ] }, "complexity": { "oneOf": [ @@ -3231,8 +2561,16 @@ ], "description": "The collection of output H.264 layers to be produced by the encoder." }, - "@odata.type": { - "type": "string" + "sceneChangeDetection": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." } }, "required": [ @@ -3261,68 +2599,23 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Image" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JpgImage" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JpgImage" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JpgImage" }, { - "allOf": [ - { - "$ref": "#/definitions/PngImage" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.PngImage" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/PngImage" } ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Image" + ] + }, + "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%)." + }, "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." @@ -3330,17 +2623,11 @@ "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%)." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "@odata.type" + "@odata.type", + "start" ], "description": "Describes the basic properties for generating thumbnails from the input video" }, @@ -3348,70 +2635,18 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.ImageFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JpgFormat" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JpgFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JpgFormat" }, { - "allOf": [ - { - "$ref": "#/definitions/PngFormat" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.PngFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/PngFormat" } ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.ImageFormat" + ] } }, "required": [ @@ -3442,14 +2677,14 @@ "IPRange": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "The friendly name for the IP address range." - }, "address": { "type": "string", "description": "The IP address." }, + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, "subnetPrefixLength": { "oneOf": [ { @@ -3468,154 +2703,32 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "JobInput" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JobInputClip" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputClip" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JobInputs" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputs" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JobInputHttp" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputHttp" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JobInputClip" }, { - "allOf": [ - { - "$ref": "#/definitions/JobInputAsset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputAsset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/JobInputs" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base class for inputs to a Job." }, "JobInputAsset": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputAsset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputAsset" + ] + }, "assetName": { "type": "string", "description": "The name of the input Asset." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "assetName", - "@odata.type" + "@odata.type", + "assetName" ], "description": "Represents an Asset for input into a Job." }, @@ -3623,68 +2736,30 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputClip" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JobInputAsset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputAsset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JobInputAsset" }, { - "allOf": [ - { - "$ref": "#/definitions/JobInputHttp" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputHttp" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JobInputHttp" } ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputClip" + ] + }, + "end": { + "oneOf": [ + { + "$ref": "#/definitions/ClipTime" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + }, "files": { "oneOf": [ { @@ -3697,14 +2772,22 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "List of files. Required for JobInputHttp." + "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." }, "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'." }, - "@odata.type": { - "type": "string" + "start": { + "oneOf": [ + { + "$ref": "#/definitions/ClipTime" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." } }, "required": [ @@ -3714,32 +2797,16 @@ }, "JobInputHttp": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputHttp" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "baseUri": { + "@odata.type": { "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." + "enum": [ + "#Microsoft.Media.JobInputHttp" + ] }, - "@odata.type": { - "type": "string" + "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." } }, "required": [ @@ -3749,26 +2816,13 @@ }, "JobInputs": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobInputs" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputs" + ] + }, "inputs": { "oneOf": [ { @@ -3782,112 +2836,66 @@ } ], "description": "List of inputs to a Job." - }, - "@odata.type": { - "type": "string" } }, "required": [ "@odata.type" ], - "description": "Describes a list of of inputs to a Job." + "description": "Describes a list of inputs to a Job." }, "JobOutput": { "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "JobOutput" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/JobOutputAsset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobOutputAsset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/JobOutputAsset" } ], "properties": { "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." - }, - "@odata.type": { - "type": "string" } }, - "required": [ - "@odata.type" - ], "description": "Describes all the properties of a JobOutput." }, "JobOutputAsset": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JobOutputAsset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobOutputAsset" + ] + }, "assetName": { "type": "string", "description": "The name of the output Asset." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "assetName", - "@odata.type" + "@odata.type", + "assetName" ], "description": "Represents an Asset used as a JobOutput." }, "JobProperties": { "type": "object", "properties": { + "correlationData": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." + }, "description": { "type": "string", "description": "Optional customer supplied description of the Job." @@ -3901,7 +2909,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The inputs for the Job." + "description": "Base class for inputs to a Job." }, "outputs": { "oneOf": [ @@ -3932,20 +2940,6 @@ } ], "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": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Customer provided correlation data that will be returned in Job and JobOutput state events." } }, "required": [ @@ -3956,28 +2950,12 @@ }, "JpgFormat": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JpgFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.JpgFormat" + ] } }, "required": [ @@ -3987,26 +2965,13 @@ }, "JpgImage": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JpgImage" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgImage" + ] + }, "layers": { "oneOf": [ { @@ -4020,9 +2985,6 @@ } ], "description": "A collection of output JPEG image layers to be produced by the encoder." - }, - "@odata.type": { - "type": "string" } }, "required": [ @@ -4032,30 +2994,7 @@ }, "JpgLayer": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.JpgLayer" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "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." @@ -4075,13 +3014,11 @@ ], "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." }, - "@odata.type": { - "type": "string" + "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." } }, - "required": [ - "@odata.type" - ], "description": "Describes the settings to produce a JPEG image from the input video." }, "LiveEventEncoding": { @@ -4093,7 +3030,9 @@ "type": "string", "enum": [ "None", - "Basic" + "Basic", + "Standard", + "Premium1080p" ] }, { @@ -4126,21 +3065,6 @@ "LiveEventInput": { "type": "object", "properties": { - "streamingProtocol": { - "oneOf": [ - { - "type": "string", - "enum": [ - "FragmentedMP4", - "RTMP" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The streaming protocol for the Live Event. This is specified at creation time and cannot be updated." - }, "accessControl": { "oneOf": [ { @@ -4150,11 +3074,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The access control for LiveEvent Input." - }, - "keyFrameIntervalDuration": { - "type": "string", - "description": "ISO 8601 timespan duration of the key frame interval duration." + "description": "The IP access control for Live Event Input." }, "accessToken": { "type": "string", @@ -4173,6 +3093,25 @@ } ], "description": "The input endpoints for the Live Event." + }, + "keyFrameIntervalDuration": { + "type": "string", + "description": "ISO 8601 timespan duration of the key frame interval duration." + }, + "streamingProtocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FragmentedMP4", + "RTMP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming protocol for the Live Event. This is specified at creation time and cannot be updated." } }, "required": [ @@ -4192,7 +3131,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The IP access control properties." + "description": "The IP access control." } }, "description": "The IP access control for Live Event Input." @@ -4200,30 +3139,34 @@ "LiveEventPreview": { "type": "object", "properties": { - "endpoints": { + "accessControl": { "oneOf": [ { - "type": "array", - "items": { - "$ref": "#/definitions/LiveEventEndpoint" - } + "$ref": "#/definitions/LiveEventPreviewAccessControl" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The endpoints for preview." + "description": "The IP access control for Live Event preview." }, - "accessControl": { + "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." + }, + "endpoints": { "oneOf": [ { - "$ref": "#/definitions/LiveEventPreviewAccessControl" + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The access control for LiveEvent preview." + "description": "The endpoints for preview." }, "previewLocator": { "type": "string", @@ -4232,10 +3175,6 @@ "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." @@ -4252,7 +3191,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The IP access control properties." + "description": "The IP access control." } }, "description": "The IP access control for Live Event preview." @@ -4260,31 +3199,20 @@ "LiveEventProperties": { "type": "object", "properties": { - "description": { - "type": "string", - "description": "The Live Event description." - }, - "input": { + "crossSiteAccessPolicies": { "oneOf": [ { - "$ref": "#/definitions/LiveEventInput" + "$ref": "#/definitions/CrossSiteAccessPolicies" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The Live Event input." + "description": "The client access policy." }, - "preview": { - "oneOf": [ - { - "$ref": "#/definitions/LiveEventPreview" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Live Event preview." + "description": { + "type": "string", + "description": "The Live Event description." }, "encoding": { "oneOf": [ @@ -4297,27 +3225,27 @@ ], "description": "The Live Event encoding." }, - "crossSiteAccessPolicies": { + "input": { "oneOf": [ { - "$ref": "#/definitions/CrossSiteAccessPolicies" + "$ref": "#/definitions/LiveEventInput" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The Live Event access policies." + "description": "The Live Event input." }, - "vanityUrl": { + "preview": { "oneOf": [ { - "type": "boolean" + "$ref": "#/definitions/LiveEventPreview" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Specifies whether to use a vanity url with the Live Event. This value is specified at creation time and cannot be updated." + "description": "The Live Event preview." }, "streamOptions": { "oneOf": [ @@ -4336,6 +3264,17 @@ } ], "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated." + }, + "vanityUrl": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies whether to use a vanity url with the Live Event. This value is specified at creation time and cannot be updated." } }, "required": [ @@ -4346,21 +3285,18 @@ "LiveOutputProperties": { "type": "object", "properties": { - "description": { + "archiveWindowLength": { "type": "string", - "description": "The description of the Live Output." + "format": "duration", + "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." }, "assetName": { "type": "string", "description": "The asset name." }, - "archiveWindowLength": { - "type": "string", - "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." - }, - "manifestName": { + "description": { "type": "string", - "description": "The manifest file name. If not provided, the service will generate one automatically." + "description": "The description of the Live Output." }, "hls": { "oneOf": [ @@ -4373,6 +3309,10 @@ ], "description": "The HLS configuration." }, + "manifestName": { + "type": "string", + "description": "The manifest file name. If not provided, the service will generate one automatically." + }, "outputSnapTime": { "oneOf": [ { @@ -4386,35 +3326,35 @@ } }, "required": [ - "assetName", - "archiveWindowLength" + "archiveWindowLength", + "assetName" ], "description": "The JSON object that contains the properties required to create a Live Output." }, "MediaFilterProperties": { "type": "object", "properties": { - "presentationTimeRange": { + "firstQuality": { "oneOf": [ { - "$ref": "#/definitions/PresentationTimeRange" + "$ref": "#/definitions/FirstQuality" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The presentation time range." + "description": "Filter First Quality" }, - "firstQuality": { + "presentationTimeRange": { "oneOf": [ { - "$ref": "#/definitions/FirstQuality" + "$ref": "#/definitions/PresentationTimeRange" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The first quality." + "description": "The presentation time range, this is asset related and not recommended for Account Filter." }, "tracks": { "oneOf": [ @@ -4453,24 +3393,58 @@ }, "description": "Properties of the Media Services account." }, - "mediaServices_assets_assetFilters_childResource": { + "mediaServices_accountFilters_childResource": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, "name": { - "type": "string" + "type": "string", + "description": "The Account Filter name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaFilterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Media Filter properties." }, "type": { "type": "string", "enum": [ - "assetFilters" + "accountFilters" ] - }, + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/accountFilters" + }, + "mediaServices_assets_assetFilters_childResource": { + "type": "object", + "properties": { "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Asset Filter name" + }, "properties": { "oneOf": [ { @@ -4479,62 +3453,129 @@ { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "assetFilters" ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/assets/assetFilters" }, - "mediaServices_liveEvents_childResource": { + "mediaServices_assets_childResource": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { "oneOf": [ { - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" + "$ref": "#/definitions/AssetProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The name of the Live Event." + "description": "The Asset properties." }, "type": { "type": "string", "enum": [ - "liveEvents" + "assets" ] - }, + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies_childResource": { + "type": "object", + "properties": { "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, - "tags": { + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { "oneOf": [ { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/definitions/ContentKeyPolicyProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags." + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] }, "location": { "type": "string", "description": "The Azure Region of the resource." }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, "properties": { "oneOf": [ { @@ -4546,33 +3587,52 @@ ], "description": "The Live Event properties." }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/mediaServices_liveEvents_liveOutputs_childResource" - } - ] - } + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "liveEvents" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/liveEvents" + "description": "Microsoft.Media/mediaservices/liveEvents" }, - "mediaServices_liveEvents_liveOutputs_childResource": { + "mediaservices_liveEvents_liveOutputs_childResource": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, "name": { "oneOf": [ { "type": "string", - "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$" + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -4580,121 +3640,230 @@ ], "description": "The name of the Live Output." }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, "type": { "type": "string", "enum": [ "liveOutputs" ] - }, + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints_childResource": { + "type": "object", + "properties": { "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, "properties": { "oneOf": [ { - "$ref": "#/definitions/LiveOutputProperties" + "$ref": "#/definitions/StreamingEndpointProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The Live Output properties." + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "streamingEndpoints" + ] } }, "required": [ + "apiVersion", "name", - "type", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Streaming Locator." + }, + "type": { + "type": "string", + "enum": [ + "streamingLocators" + ] + } + }, + "required": [ "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/liveEvents/liveOutputs" + "description": "Microsoft.Media/mediaServices/streamingLocators" }, - "mediaServices_streamingEndpoints_childResource": { + "mediaServices_streamingPolicies_childResource": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-07-01" + ] + }, "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { "oneOf": [ { - "type": "string", - "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$" + "$ref": "#/definitions/StreamingPolicyProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The name of the StreamingEndpoint." + "description": "Class to specify properties of Streaming Policy" }, "type": { "type": "string", "enum": [ - "streamingEndpoints" + "streamingPolicies" ] - }, + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms_childResource": { + "type": "object", + "properties": { "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags." - }, - "location": { + "name": { "type": "string", - "description": "The Azure Region of the resource." + "description": "The Transform name." }, "properties": { "oneOf": [ { - "$ref": "#/definitions/StreamingEndpointProperties" + "$ref": "#/definitions/TransformProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The StreamingEndpoint properties." + "description": "A Transform." + }, + "type": { + "type": "string", + "enum": [ + "transforms" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], - "description": "Microsoft.Media/mediaServices/streamingEndpoints" + "description": "Microsoft.Media/mediaServices/transforms" }, "mediaServices_transforms_jobs_childResource": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "jobs" - ] - }, "apiVersion": { "type": "string", "enum": [ "2018-07-01" ] }, + "name": { + "type": "string", + "description": "The Job name." + }, "properties": { "oneOf": [ { @@ -4704,41 +3873,31 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The resource properties." + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "jobs" + ] } }, "required": [ - "name", - "type", "apiVersion", - "properties" + "name", + "properties", + "type" ], "description": "Microsoft.Media/mediaServices/transforms/jobs" }, "Mp4Format": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Mp4Format" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.Mp4Format" + ] } }, "required": [ @@ -4750,68 +3909,19 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.MultiBitrateFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/Mp4Format" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Mp4Format" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/Mp4Format" }, { - "allOf": [ - { - "$ref": "#/definitions/TransportStreamFormat" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.TransportStreamFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/TransportStreamFormat" } ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MultiBitrateFormat" + ] + }, "outputFiles": { "oneOf": [ { @@ -4825,9 +3935,6 @@ } ], "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 ." - }, - "@odata.type": { - "type": "string" } }, "required": [ @@ -4847,7 +3954,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Representing supported protocols" + "description": "Class to specify which protocols are enabled" } }, "description": "Class for NoEncryption scheme" @@ -4870,138 +3977,71 @@ "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." } }, + "required": [ + "labels" + ], "description": "Represents an output file produced." }, "Overlay": { "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Overlay" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/AudioOverlay" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AudioOverlay" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/AudioOverlay" }, { - "allOf": [ - { - "$ref": "#/definitions/VideoOverlay" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.VideoOverlay" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/VideoOverlay" } ], "properties": { - "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", - "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." + "audioGainLevel": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." }, "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": { - "oneOf": [ - { - "type": "number" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." + "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." }, - "@odata.type": { - "type": "string" + "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." } }, "required": [ - "@odata.type" + "inputLabel" ], "description": "Base type for all overlays - image, audio or video." }, "PngFormat": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.PngFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.PngFormat" + ] } }, "required": [ @@ -5011,26 +4051,13 @@ }, "PngImage": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.PngImage" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngImage" + ] + }, "layers": { "oneOf": [ { @@ -5044,9 +4071,6 @@ } ], "description": "A collection of output PNG image layers to be produced by the encoder." - }, - "@odata.type": { - "type": "string" } }, "required": [ @@ -5056,30 +4080,7 @@ }, "PngLayer": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.PngLayer" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "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." @@ -5088,19 +4089,17 @@ "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." }, - "@odata.type": { - "type": "string" + "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." } }, - "required": [ - "@odata.type" - ], "description": "Describes the settings to produce a PNG image from the input video." }, "PresentationTimeRange": { "type": "object", "properties": { - "startTimestamp": { + "endTimestamp": { "oneOf": [ { "type": "integer" @@ -5109,20 +4108,20 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The absolute start time boundary." + "description": "The absolute end time boundary." }, - "endTimestamp": { + "forceEndTimestamp": { "oneOf": [ { - "type": "integer" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The absolute end time boundary." + "description": "The indicator of forcing existing of end time stamp." }, - "presentationWindowDuration": { + "liveBackoffDuration": { "oneOf": [ { "type": "integer" @@ -5131,9 +4130,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The relative to end sliding window." + "description": "The relative to end right edge." }, - "liveBackoffDuration": { + "presentationWindowDuration": { "oneOf": [ { "type": "integer" @@ -5142,9 +4141,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The relative to end right edge." + "description": "The relative to end sliding window." }, - "timescale": { + "startTimestamp": { "oneOf": [ { "type": "integer" @@ -5153,130 +4152,48 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The time scale of time stamps." + "description": "The absolute start time boundary." }, - "forceEndTimestamp": { + "timescale": { "oneOf": [ { - "type": "boolean" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The indicator of forcing exsiting of end time stamp." + "description": "The time scale of time stamps." } }, - "required": [ - "startTimestamp", - "endTimestamp", - "presentationWindowDuration", - "liveBackoffDuration", - "timescale", - "forceEndTimestamp" - ], "description": "The presentation time range, this is asset related and not recommended for Account Filter." }, "Preset": { "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Preset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/FaceDetectorPreset" }, { - "allOf": [ - { - "$ref": "#/definitions/AudioAnalyzerPreset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.AudioAnalyzerPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/AudioAnalyzerPreset" }, { - "allOf": [ - { - "$ref": "#/definitions/BuiltInStandardEncoderPreset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.BuiltInStandardEncoderPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/BuiltInStandardEncoderPreset" }, { - "allOf": [ - { - "$ref": "#/definitions/StandardEncoderPreset" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.StandardEncoderPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], - "properties": { - "@odata.type": { - "type": "string" + "$ref": "#/definitions/StandardEncoderPreset" } - }, - "required": [ - "@odata.type" ], + "properties": {}, "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." }, "Rectangle": { "type": "object", "properties": { + "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%)." + }, "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%)." @@ -5288,60 +4205,43 @@ "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%)." } }, "description": "Describes the properties of a rectangular window applied to the input media before processing it." }, "StandardEncoderPreset": { - "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.StandardEncoderPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], + "type": "object", "properties": { - "filters": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.StandardEncoderPreset" + ] + }, + "codecs": { "oneOf": [ { - "$ref": "#/definitions/Filters" + "type": "array", + "items": { + "$ref": "#/definitions/Codec" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "One or more filtering operations that are applied to the input media before encoding." + "description": "The list of codecs to be used when encoding the input video." }, - "codecs": { + "filters": { "oneOf": [ { - "type": "array", - "items": { - "$ref": "#/definitions/Codec" - } + "$ref": "#/definitions/Filters" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The list of codecs to be used when encoding the input video." + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." }, "formats": { "oneOf": [ @@ -5356,13 +4256,12 @@ } ], "description": "The list of outputs to be produced by the encoder." - }, - "@odata.type": { - "type": "string" } }, "required": [ - "@odata.type" + "@odata.type", + "codecs", + "formats" ], "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." }, @@ -5374,10 +4273,17 @@ "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" + "oneOf": [ + { + "type": "string", + "enum": [ + "Primary", + "Secondary" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } ], "description": "The type of the storage account." } @@ -5399,7 +4305,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The access control of Akamai" + "description": "Akamai access control" }, "ip": { "oneOf": [ @@ -5410,7 +4316,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The IP access control of the StreamingEndpoint." + "description": "The IP access control." } }, "description": "StreamingEndpoint access control definition." @@ -5418,46 +4324,50 @@ "StreamingEndpointProperties": { "type": "object", "properties": { - "description": { - "type": "string", - "description": "The StreamingEndpoint description." - }, - "scaleUnits": { + "accessControl": { "oneOf": [ { - "type": "integer" + "$ref": "#/definitions/StreamingEndpointAccessControl" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The number of scale units. Use the Scale operation to adjust this value." + "description": "StreamingEndpoint access control definition." }, "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": { + "cdnEnabled": { "oneOf": [ { - "$ref": "#/definitions/StreamingEndpointAccessControl" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The access control definition of the StreamingEndpoint." + "description": "The CDN enabled flag." }, - "maxCacheAge": { + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "crossSiteAccessPolicies": { "oneOf": [ { - "type": "integer" + "$ref": "#/definitions/CrossSiteAccessPolicies" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Max cache age" + "description": "The client access policy." }, "customHostNames": { "oneOf": [ @@ -5473,35 +4383,31 @@ ], "description": "The custom host names of the StreamingEndpoint" }, - "cdnEnabled": { + "description": { + "type": "string", + "description": "The StreamingEndpoint description." + }, + "maxCacheAge": { "oneOf": [ { - "type": "boolean" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The CDN enabled flag." - }, - "cdnProvider": { - "type": "string", - "description": "The CDN provider name." - }, - "cdnProfile": { - "type": "string", - "description": "The CDN profile name." + "description": "Max cache age" }, - "crossSiteAccessPolicies": { + "scaleUnits": { "oneOf": [ { - "$ref": "#/definitions/CrossSiteAccessPolicies" + "type": "integer" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The StreamingEndpoint access policies." + "description": "The number of scale units. Use the Scale operation to adjust this value." } }, "required": [ @@ -5530,7 +4436,7 @@ }, "value": { "type": "string", - "description": "Value of of Content Key" + "description": "Value of Content Key" } }, "required": [ @@ -5541,57 +4447,71 @@ "StreamingLocatorProperties": { "type": "object", "properties": { + "alternativeMediaId": { + "type": "string", + "description": "Alternative Media ID of this Streaming Locator" + }, "assetName": { "type": "string", "description": "Asset Name" }, - "startTime": { + "contentKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The ContentKeys used by this Streaming Locator." + }, + "defaultContentKeyPolicyName": { "type": "string", - "format": "date-time", - "description": "The start time of the Streaming Locator." + "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." }, "endTime": { "type": "string", "format": "date-time", "description": "The end time of the Streaming Locator." }, - "streamingLocatorId": { + "filters": { "oneOf": [ { - "type": "string", - "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + "type": "array", + "items": { + "type": "string" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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'" + "description": "A list of asset or account filters which apply to this streaming locator" }, - "defaultContentKeyPolicyName": { + "startTime": { "type": "string", - "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." + "format": "date-time", + "description": "The start time of the Streaming Locator." }, - "contentKeys": { + "streamingLocatorId": { "oneOf": [ { - "type": "array", - "items": { - "$ref": "#/definitions/StreamingLocatorContentKey" - } + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The ContentKeys used by this Streaming Locator." + "description": "The StreamingLocatorId of the Streaming Locator." }, - "alternativeMediaId": { + "streamingPolicyName": { "type": "string", - "description": "Alternative Media ID of this Streaming Locator" + "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'" } }, "required": [ @@ -5640,7 +4560,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Default content key for an encryption scheme" + "description": "Class to specify properties of default content key for each encryption scheme" }, "keyToTrackMappings": { "oneOf": [ @@ -5662,10 +4582,6 @@ "StreamingPolicyFairPlayConfiguration": { "type": "object", "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": { "oneOf": [ { @@ -5676,6 +4592,10 @@ } ], "description": "All license to be persistent or not" + }, + "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." } }, "required": [ @@ -5688,7 +4608,7 @@ "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." + "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", @@ -5700,20 +4620,16 @@ "StreamingPolicyProperties": { "type": "object", "properties": { - "defaultContentKeyPolicyName": { - "type": "string", - "description": "Default ContentKey used by current Streaming Policy" - }, - "envelopeEncryption": { + "commonEncryptionCbcs": { "oneOf": [ { - "$ref": "#/definitions/EnvelopeEncryption" + "$ref": "#/definitions/CommonEncryptionCbcs" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configuration of EnvelopeEncryption" + "description": "Class for CommonEncryptionCbcs encryption scheme" }, "commonEncryptionCenc": { "oneOf": [ @@ -5724,18 +4640,22 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configuration of CommonEncryptionCenc" + "description": "Class for envelope encryption scheme" }, - "commonEncryptionCbcs": { + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKey used by current Streaming Policy" + }, + "envelopeEncryption": { "oneOf": [ { - "$ref": "#/definitions/CommonEncryptionCbcs" + "$ref": "#/definitions/EnvelopeEncryption" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configuration of CommonEncryptionCbcs" + "description": "Class for EnvelopeEncryption encryption scheme" }, "noEncryption": { "oneOf": [ @@ -5746,7 +4666,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Configurations of NoEncryption" + "description": "Class for NoEncryption scheme" } }, "description": "Class to specify properties of Streaming Policy" @@ -5756,7 +4676,7 @@ "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." + "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." } }, "description": "Class to specify configurations of Widevine in Streaming Policy" @@ -5764,35 +4684,35 @@ "TrackPropertyCondition": { "type": "object", "properties": { - "property": { + "operation": { "oneOf": [ { "type": "string", "enum": [ "Unknown", - "FourCC" + "Equal" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Track property type." + "description": "Track property condition operation." }, - "operation": { + "property": { "oneOf": [ { "type": "string", "enum": [ "Unknown", - "Equal" + "FourCC" ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Track property condition operation." + "description": "Track property type." }, "value": { "type": "string", @@ -5800,8 +4720,8 @@ } }, "required": [ - "property", - "operation" + "operation", + "property" ], "description": "Class to specify one track property condition" }, @@ -5843,32 +4763,32 @@ ], "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": { + "preset": { "oneOf": [ { - "type": "string", - "enum": [ - "Low", - "Normal", - "High" - ] + "$ref": "#/definitions/Preset" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "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." + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." }, - "preset": { + "relativePriority": { "oneOf": [ { - "$ref": "#/definitions/Preset" + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Preset that describes the operations that will be used to modify, transcode, or extract insights from the source file to generate the output." + "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." } }, "required": [ @@ -5905,28 +4825,12 @@ }, "TransportStreamFormat": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.TransportStreamFormat" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { "@odata.type": { - "type": "string" + "type": "string", + "enum": [ + "#Microsoft.Media.TransportStreamFormat" + ] } }, "required": [ @@ -5938,70 +4842,22 @@ "type": "object", "oneOf": [ { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Video" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - }, - { - "allOf": [ - { - "$ref": "#/definitions/Image" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.Image" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/Image" }, { - "allOf": [ - { - "$ref": "#/definitions/H264Video" - } - ], - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.H264Video" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } + "$ref": "#/definitions/H264Video" } ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Video" + ] + }, "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": { @@ -6019,9 +4875,6 @@ } ], "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize." - }, - "@odata.type": { - "type": "string" } }, "required": [ @@ -6031,26 +4884,13 @@ }, "VideoAnalyzerPreset": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.VideoAnalyzerPreset" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoAnalyzerPreset" + ] + }, "insightsToExtract": { "oneOf": [ { @@ -6065,10 +4905,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The type of insights to be extracted. If not set then based on the content the type will selected. If the content is audi only then only audio insights are extraced and if it is video only." - }, - "@odata.type": { - "type": "string" + "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." } }, "required": [ @@ -6078,27 +4915,14 @@ }, "VideoOverlay": { "type": "object", - "oneOf": [ - { - "properties": { - "@odata.type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "#Microsoft.Media.VideoOverlay" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - } - } - ], "properties": { - "position": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoOverlay" + ] + }, + "cropRectangle": { "oneOf": [ { "$ref": "#/definitions/Rectangle" @@ -6107,7 +4931,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The location in the input video where the overlay is applied." + "description": "Describes the properties of a rectangular window applied to the input media before processing it." }, "opacity": { "oneOf": [ @@ -6120,7 +4944,7 @@ ], "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": { + "position": { "oneOf": [ { "$ref": "#/definitions/Rectangle" @@ -6129,10 +4953,7 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "An optional rectangular window used to crop the overlay image or video." - }, - "@odata.type": { - "type": "string" + "description": "Describes the properties of a rectangular window applied to the input media before processing it." } }, "required": [ diff --git a/schemas/2019-05-01-preview/Microsoft.Media.json b/schemas/2019-05-01-preview/Microsoft.Media.json new file mode 100644 index 0000000000..0480554b23 --- /dev/null +++ b/schemas/2019-05-01-preview/Microsoft.Media.json @@ -0,0 +1,881 @@ +{ + "id": "https://schema.management.azure.com/schemas/2019-05-01-preview/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaservices_liveEvents": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Event." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaservices_liveEvents_liveOutputs_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-05-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_streamingEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The Azure Region of the resource." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the StreamingEndpoint." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The StreamingEndpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + } + }, + "definitions": { + "AkamaiAccessControl": { + "type": "object", + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "AkamaiSignatureHeaderAuthenticationKey": { + "type": "object", + "properties": { + "base64Key": { + "type": "string", + "description": "authentication key" + }, + "expiration": { + "type": "string", + "format": "date-time", + "description": "The expiration time of the authentication key." + }, + "identifier": { + "type": "string", + "description": "identifier of the key" + } + }, + "description": "Akamai Signature Header authentication key." + }, + "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." + }, + "Hls": { + "type": "object", + "properties": { + "fragmentsPerTsSegment": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The amount of fragments per HTTP Live Streaming (HLS) segment." + } + }, + "description": "The HLS configuration." + }, + "IPAccessControl": { + "type": "object", + "properties": { + "allow": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "IPRange": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The IP address." + }, + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, + "subnetPrefixLength": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The subnet mask prefix length (see CIDR notation)." + } + }, + "description": "The IP address range in the CIDR scheme." + }, + "LiveEventEncoding": { + "type": "object", + "properties": { + "encodingType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Basic", + "Standard", + "Premium1080p" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding type for Live Event. This value is specified at creation time and cannot be updated." + }, + "presetName": { + "type": "string", + "description": "The encoding preset name. This value is specified at creation time and cannot be updated." + } + }, + "description": "The Live Event encoding." + }, + "LiveEventEndpoint": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The Live Event endpoint." + }, + "LiveEventInput": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInputAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for Live Event Input." + }, + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The input endpoints for the Live Event." + }, + "keyFrameIntervalDuration": { + "type": "string", + "description": "ISO 8601 timespan duration of the key frame interval duration." + }, + "streamingProtocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FragmentedMP4", + "RTMP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming protocol for the Live Event. This is specified at creation time and cannot be updated." + } + }, + "required": [ + "streamingProtocol" + ], + "description": "The Live Event input." + }, + "LiveEventInputAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for Live Event Input." + }, + "LiveEventInputTrackSelection": { + "type": "object", + "properties": { + "operation": { + "type": "string", + "description": "Comparing operation." + }, + "property": { + "type": "string", + "description": "Property name to select." + }, + "value": { + "type": "string", + "description": "Property value to select." + } + }, + "description": "A track selection condition." + }, + "LiveEventOutputTranscriptionTrack": { + "type": "object", + "properties": { + "trackName": { + "type": "string", + "description": "The output track name." + } + }, + "required": [ + "trackName" + ], + "description": "Describes a transcription track in the output of a Live Event, generated using speech-to-text transcription." + }, + "LiveEventPreview": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreviewAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for Live Event preview." + }, + "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." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The endpoints for 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." + } + }, + "description": "The Live Event preview." + }, + "LiveEventPreviewAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for Live Event preview." + }, + "LiveEventProperties": { + "type": "object", + "properties": { + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "description": { + "type": "string", + "description": "The Live Event description." + }, + "encoding": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventEncoding" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event encoding." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event input." + }, + "preview": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreview" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event preview." + }, + "streamOptions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Default", + "LowLatency" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The options to use for the LiveEvent. This value is specified at creation time and cannot be updated." + }, + "transcriptions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventTranscription" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Live Event transcription." + }, + "vanityUrl": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies whether to use a vanity url with the Live Event. This value is specified at creation time and cannot be updated." + } + }, + "required": [ + "input" + ], + "description": "The Live Event properties." + }, + "LiveEventTranscription": { + "type": "object", + "properties": { + "inputTrackSelection": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventInputTrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Provides a mechanism to select the audio track in the input live feed, to which speech-to-text transcription is applied." + }, + "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'." + }, + "outputTranscriptionTrack": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventOutputTranscriptionTrack" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "LiveOutputProperties": { + "type": "object", + "properties": { + "archiveWindowLength": { + "type": "string", + "format": "duration", + "description": "ISO 8601 timespan duration of the archive window length. This is duration that customer want to retain the recorded content." + }, + "assetName": { + "type": "string", + "description": "The asset name." + }, + "description": { + "type": "string", + "description": "The description of the Live Output." + }, + "hls": { + "oneOf": [ + { + "$ref": "#/definitions/Hls" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The HLS configuration." + }, + "manifestName": { + "type": "string", + "description": "The manifest file name. If not provided, the service will generate one automatically." + }, + "outputSnapTime": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The output snapshot time." + } + }, + "required": [ + "archiveWindowLength", + "assetName" + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "mediaservices_liveEvents_liveOutputs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-05-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Live Output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a Live Output." + }, + "type": { + "type": "string", + "enum": [ + "liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "StreamingEndpointAccessControl": { + "type": "object", + "properties": { + "akamai": { + "oneOf": [ + { + "$ref": "#/definitions/AkamaiAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Akamai access control" + }, + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "StreamingEndpoint access control definition." + }, + "StreamingEndpointProperties": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "StreamingEndpoint access control definition." + }, + "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." + }, + "cdnEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The CDN enabled flag." + }, + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "customHostNames": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The custom host names of the StreamingEndpoint" + }, + "description": { + "type": "string", + "description": "The StreamingEndpoint description." + }, + "maxCacheAge": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max cache age" + }, + "scaleUnits": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of scale units. Use the Scale operation to adjust this value." + } + }, + "required": [ + "scaleUnits" + ], + "description": "The StreamingEndpoint properties." + } + } +} diff --git a/schemas/2019-09-01-preview/Microsoft.Media.json b/schemas/2019-09-01-preview/Microsoft.Media.json new file mode 100644 index 0000000000..8bbfaba852 --- /dev/null +++ b/schemas/2019-09-01-preview/Microsoft.Media.json @@ -0,0 +1,211 @@ +{ + "id": "https://schema.management.azure.com/schemas/2019-09-01-preview/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaServices_mediaGraphs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Media Graph name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for Media Graph properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/mediaGraphs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/mediaGraphs" + } + }, + "definitions": { + "MediaGraphAssetSink": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphAssetSink" + ] + }, + "assetName": { + "type": "string", + "description": "Asset name" + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Asset sink" + }, + "MediaGraphProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Media Graph description" + }, + "sinks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSink" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Media Graph sinks" + }, + "sources": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSource" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Media Graph sources" + } + }, + "required": [ + "sinks", + "sources" + ], + "description": "Class for Media Graph properties" + }, + "MediaGraphRtspSource": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphRtspSource" + ] + }, + "credentials": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphUserCredentials" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Credentials to authenticate to Media Graph sources" + }, + "rtspUrl": { + "type": "string", + "description": "RTSP URL" + } + }, + "required": [ + "@odata.type", + "rtspUrl" + ], + "description": "RTSP source" + }, + "MediaGraphSink": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphAssetSink" + } + ], + "properties": { + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sink inputs" + }, + "name": { + "type": "string", + "description": "Sink name" + } + }, + "required": [ + "inputs", + "name" + ], + "description": "Media Sink" + }, + "MediaGraphSource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphRtspSource" + } + ], + "properties": { + "name": { + "type": "string", + "description": "Source name" + } + }, + "required": [ + "name" + ], + "description": "Media source" + }, + "MediaGraphUserCredentials": { + "type": "object", + "properties": { + "password": { + "type": "string", + "description": "Password credential" + }, + "username": { + "type": "string", + "description": "User name" + } + }, + "required": [ + "password", + "username" + ], + "description": "Credentials to authenticate to Media Graph sources" + } + } +} diff --git a/schemas/2020-02-01-preview/Microsoft.Media.json b/schemas/2020-02-01-preview/Microsoft.Media.json new file mode 100644 index 0000000000..4a75693be7 --- /dev/null +++ b/schemas/2020-02-01-preview/Microsoft.Media.json @@ -0,0 +1,396 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-02-01-preview/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaServices_mediaGraphs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The Media Graph name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for Media Graph properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/mediaGraphs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/mediaGraphs" + } + }, + "definitions": { + "MediaGraphAssetSink": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphAssetSink" + ] + }, + "assetName": { + "type": "string", + "description": "Asset name." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Asset sink." + }, + "MediaGraphCertificateSource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphPemCertificateList" + } + ], + "properties": {}, + "description": "Base class for certificate sources." + }, + "MediaGraphClearEndpoint": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphClearEndpoint" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "An endpoint to connect to with no encryption in transit." + }, + "MediaGraphCredentials": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphUsernamePasswordCredentials" + } + ], + "properties": {}, + "description": "Credentials to present during authentication." + }, + "MediaGraphEndpoint": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphClearEndpoint" + }, + { + "$ref": "#/definitions/MediaGraphTlsEndpoint" + } + ], + "properties": { + "credentials": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphCredentials" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Credentials to present during authentication." + }, + "url": { + "type": "string", + "description": "Url for the endpoint." + } + }, + "required": [ + "url" + ], + "description": "Base class for endpoints." + }, + "MediaGraphPemCertificateList": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphPemCertificateList" + ] + }, + "certificates": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "PEM formatted public certificates, one per entry." + } + }, + "required": [ + "@odata.type", + "certificates" + ], + "description": "A list of PEM formatted certificates." + }, + "MediaGraphProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Media Graph description." + }, + "sinks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSink" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Media Graph sinks." + }, + "sources": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSource" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Media Graph sources." + } + }, + "required": [ + "sinks", + "sources" + ], + "description": "Class for Media Graph properties." + }, + "MediaGraphRtspSource": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphRtspSource" + ] + }, + "endpoint": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphEndpoint" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for endpoints." + }, + "transport": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Http", + "Tcp" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Underlying RTSP transport. This can be used to enable or disable HTTP tunneling." + } + }, + "required": [ + "@odata.type", + "endpoint", + "transport" + ], + "description": "RTSP source." + }, + "MediaGraphSink": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphAssetSink" + } + ], + "properties": { + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sink inputs." + }, + "name": { + "type": "string", + "description": "Sink name." + } + }, + "required": [ + "inputs", + "name" + ], + "description": "Media Sink." + }, + "MediaGraphSource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphRtspSource" + } + ], + "properties": { + "name": { + "type": "string", + "description": "Source name." + } + }, + "required": [ + "name" + ], + "description": "Media source." + }, + "MediaGraphTlsEndpoint": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphTlsEndpoint" + ] + }, + "trustedCertificates": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphCertificateSource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for certificate sources." + }, + "validationOptions": { + "oneOf": [ + { + "$ref": "#/definitions/MediaGraphTlsValidationOptions" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Options for controlling the authentication of TLS endpoints." + } + }, + "required": [ + "@odata.type" + ], + "description": "An endpoint which must be connected over TLS/SSL." + }, + "MediaGraphTlsValidationOptions": { + "type": "object", + "properties": { + "ignoreHostname": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Ignore the host name (common name) during validation." + }, + "ignoreSignature": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Ignore the integrity of the certificate chain at the current time." + } + }, + "required": [ + "ignoreHostname", + "ignoreSignature" + ], + "description": "Options for controlling the authentication of TLS endpoints." + }, + "MediaGraphUsernamePasswordCredentials": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MediaGraphUsernamePasswordCredentials" + ] + }, + "password": { + "type": "string", + "description": "Password for a username/password pair." + }, + "username": { + "type": "string", + "description": "Username for a username/password pair." + } + }, + "required": [ + "@odata.type", + "password", + "username" + ], + "description": "Username/password credential pair." + } + } +} diff --git a/schemas/2020-05-01/Microsoft.Media.json b/schemas/2020-05-01/Microsoft.Media.json new file mode 100644 index 0000000000..6104e332c8 --- /dev/null +++ b/schemas/2020-05-01/Microsoft.Media.json @@ -0,0 +1,5982 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Media.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Media", + "description": "Microsoft Media Resource Types", + "resourceDefinitions": { + "mediaservices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/MediaServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The Media Services account name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaServiceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Media Services account." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_accountFilters_childResource" + }, + { + "$ref": "#/definitions/mediaservices_privateEndpointConnections_childResource" + }, + { + "$ref": "#/definitions/mediaServices_assets_childResource" + }, + { + "$ref": "#/definitions/mediaServices_contentKeyPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_transforms_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingPolicies_childResource" + }, + { + "$ref": "#/definitions/mediaServices_streamingLocators_childResource" + }, + { + "$ref": "#/definitions/mediaservices_liveEvents_childResource" + }, + { + "$ref": "#/definitions/mediaservices_streamingEndpoints_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices" + }, + "mediaServices_accountFilters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Account Filter name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaFilterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/accountFilters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/accountFilters" + }, + "mediaServices_assets": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_assets_assetFilters_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_assets_assetFilters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Asset Filter name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaFilterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/assets/assetFilters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets/assetFilters" + }, + "mediaServices_contentKeyPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the live event, maximum length is 32." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The live event properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaservices_liveEvents_liveOutputs_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the live output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a live output." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/privateEndpointConnections" + }, + "mediaservices_streamingEndpoints": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the streaming endpoint, maximum length is 24." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming endpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaservices/streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Streaming Locator." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/mediaServices_transforms_jobs_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Media/mediaServices/transforms/jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + } + }, + "definitions": { + "AacAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AacAudio" + ] + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AacLc", + "HeAacV1", + "HeAacV2" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The encoding profile to be used when encoding audio with AAC." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes Advanced Audio Codec (AAC) audio encoding settings." + }, + "AbsoluteClipTime": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AbsoluteClipTime" + ] + }, + "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." + } + }, + "required": [ + "@odata.type", + "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." + }, + "AccountEncryption": { + "type": "object", + "properties": { + "keyVaultProperties": { + "oneOf": [ + { + "$ref": "#/definitions/KeyVaultProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemKey", + "CustomerKey" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of key used to encrypt the Account Key." + } + }, + "required": [ + "type" + ] + }, + "AkamaiAccessControl": { + "type": "object", + "properties": { + "akamaiSignatureHeaderAuthenticationKeyList": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AkamaiSignatureHeaderAuthenticationKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "authentication key list" + } + }, + "description": "Akamai access control" + }, + "AkamaiSignatureHeaderAuthenticationKey": { + "type": "object", + "properties": { + "base64Key": { + "type": "string", + "description": "authentication key" + }, + "expiration": { + "type": "string", + "format": "date-time", + "description": "The expiration time of the authentication key." + }, + "identifier": { + "type": "string", + "description": "identifier of the key" + } + }, + "description": "Akamai Signature Header authentication key." + }, + "AssetProperties": { + "type": "object", + "properties": { + "alternateId": { + "type": "string", + "description": "The alternate ID of the Asset." + }, + "container": { + "type": "string", + "description": "The name of the asset blob container." + }, + "description": { + "type": "string", + "description": "The Asset description." + }, + "storageAccountName": { + "type": "string", + "description": "The name of the storage account." + } + }, + "description": "The Asset properties." + }, + "Audio": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AacAudio" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Audio" + ] + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The bitrate, in bits per second, of the output encoded audio." + }, + "channels": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of channels in the audio." + }, + "samplingRate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sampling rate to use for encoding in hertz." + } + }, + "required": [ + "@odata.type" + ], + "description": "Defines the common properties for all audio codecs." + }, + "AudioAnalyzerPreset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/VideoAnalyzerPreset" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioAnalyzerPreset" + ] + }, + "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" + }, + "experimentalOptions": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" + }, + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Standard", + "Basic" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "AudioOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioOverlay" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of an audio overlay." + }, + "AudioTrackDescriptor": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/SelectAudioTrackByAttribute" + }, + { + "$ref": "#/definitions/SelectAudioTrackById" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.AudioTrackDescriptor" + ] + }, + "channelMapping": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FrontLeft", + "FrontRight", + "Center", + "LowFrequencyEffects", + "BackLeft", + "BackRight", + "StereoLeft", + "StereoRight" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks." + } + }, + "required": [ + "@odata.type" + ], + "description": "A TrackSelection to select audio tracks." + }, + "BuiltInStandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.BuiltInStandardEncoderPreset" + ] + }, + "presetName": { + "oneOf": [ + { + "type": "string", + "enum": [ + "H264SingleBitrateSD", + "H264SingleBitrate720p", + "H264SingleBitrate1080p", + "AdaptiveStreaming", + "AACGoodQualityAudio", + "ContentAwareEncodingExperimental", + "ContentAwareEncoding", + "CopyAllBitrateNonInterleaved", + "H264MultipleBitrate1080p", + "H264MultipleBitrate720p", + "H264MultipleBitrateSD", + "H265ContentAwareEncoding", + "H265AdaptiveStreaming", + "H265SingleBitrate720p", + "H265SingleBitrate1080p", + "H265SingleBitrate4K" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The built-in preset to be used for encoding videos." + } + }, + "required": [ + "@odata.type", + "presetName" + ], + "description": "Describes a built-in preset for encoding the input video with the Standard Encoder." + }, + "CbcsDrmConfiguration": { + "type": "object", + "properties": { + "fairPlay": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyFairPlayConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "CencDrmConfiguration": { + "type": "object", + "properties": { + "playReady": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyPlayReadyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "widevine": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyWidevineConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify configurations of Widevine in Streaming Policy" + } + }, + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "ClipTime": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AbsoluteClipTime" + }, + { + "$ref": "#/definitions/UtcClipTime" + } + ], + "properties": {}, + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + }, + "Codec": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Audio" + }, + { + "$ref": "#/definitions/Video" + }, + { + "$ref": "#/definitions/CopyVideo" + }, + { + "$ref": "#/definitions/CopyAudio" + } + ], + "properties": { + "label": { + "type": "string", + "description": "An optional label for the codec. The label can be used to control muxing behavior." + } + }, + "description": "Describes the basic properties of all codecs." + }, + "CommonEncryptionCbcs": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CbcsDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "CommonEncryptionCenc": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "drm": { + "oneOf": [ + { + "$ref": "#/definitions/CencDrmConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy" + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for envelope encryption scheme" + }, + "ContentKeyPolicyClearKeyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a configuration for non-DRM keys." + }, + "ContentKeyPolicyConfiguration": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyClearKeyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyWidevineConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyConfiguration" + }, + { + "$ref": "#/definitions/ContentKeyPolicyFairPlayConfiguration" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "ContentKeyPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" + ] + }, + "ask": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key that must be used as FairPlay Application Secret key." + }, + "fairPlayPfx": { + "type": "string", + "description": "The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key)." + }, + "fairPlayPfxPassword": { + "type": "string", + "description": "The password encrypting FairPlay certificate in PKCS 12 (pfx) format." + }, + "offlineRentalConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyFairPlayOfflineRentalConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "rentalAndLeaseKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Undefined", + "DualExpiry", + "PersistentUnlimited", + "PersistentLimited" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental and lease key type." + }, + "rentalDuration": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rental duration. Must be greater than or equal to 0." + } + }, + "required": [ + "@odata.type", + "ask", + "fairPlayPfx", + "fairPlayPfxPassword", + "rentalAndLeaseKeyType", + "rentalDuration" + ], + "description": "Specifies a configuration for FairPlay licenses." + }, + "ContentKeyPolicyFairPlayOfflineRentalConfiguration": { + "type": "object", + "properties": { + "playbackDurationSeconds": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Playback duration" + }, + "storageDurationSeconds": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage duration" + } + }, + "required": [ + "playbackDurationSeconds", + "storageDurationSeconds" + ] + }, + "ContentKeyPolicyOpenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents an open restriction. License or key will be delivered on every request." + }, + "ContentKeyPolicyOption": { + "type": "object", + "properties": { + "configuration": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy configuration. A derived class must be used to create a configuration." + }, + "name": { + "type": "string", + "description": "The Policy Option description." + }, + "restriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + } + }, + "required": [ + "configuration", + "restriction" + ], + "description": "Represents a policy option." + }, + "ContentKeyPolicyPlayReadyConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" + ] + }, + "licenses": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyLicense" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady licenses." + }, + "responseCustomData": { + "type": "string", + "description": "The custom response data." + } + }, + "required": [ + "@odata.type", + "licenses" + ], + "description": "Specifies a configuration for PlayReady licenses." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Specifies that the content key ID is in the PlayReady header." + }, + "ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + ] + }, + "keyId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The content key ID." + } + }, + "required": [ + "@odata.type", + "keyId" + ], + "description": "Specifies that the content key ID is specified in the PlayReady configuration." + }, + "ContentKeyPolicyPlayReadyContentKeyLocation": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + }, + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" + } + ], + "properties": {}, + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction": { + "type": "object", + "properties": { + "bestEffort": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether this restriction is enforced on a Best Effort basis." + }, + "configurationData": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the restriction control bits. Must be between 0 and 3 inclusive." + } + }, + "required": [ + "bestEffort", + "configurationData" + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "ContentKeyPolicyPlayReadyLicense": { + "type": "object", + "properties": { + "allowTestDevices": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether test devices can use the license." + }, + "beginDate": { + "type": "string", + "format": "date-time", + "description": "The begin date of license" + }, + "contentKeyLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyContentKeyLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for content key ID location. A derived class must be used to represent the location." + }, + "contentType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Unspecified", + "UltraVioletDownload", + "UltraVioletStreaming" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The PlayReady content type." + }, + "expirationDate": { + "type": "string", + "format": "date-time", + "description": "The expiration date of license." + }, + "gracePeriod": { + "type": "string", + "format": "duration", + "description": "The grace period of license." + }, + "licenseType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NonPersistent", + "Persistent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The license type." + }, + "playRight": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyPlayRight" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Play Right in the PlayReady 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." + } + }, + "required": [ + "allowTestDevices", + "contentKeyLocation", + "contentType", + "licenseType" + ], + "description": "The PlayReady license" + }, + "ContentKeyPolicyPlayReadyPlayRight": { + "type": "object", + "properties": { + "agcAndColorStripeRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive." + }, + "allowPassingVideoContentToUnknownOutput": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "NotAllowed", + "Allowed", + "AllowedWithVideoConstriction" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures Unknown output handling settings of the license." + }, + "analogVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital audio." + }, + "compressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for compressed digital video." + }, + "digitalVideoOnlyContentRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "explicitAnalogTelevisionOutputRestriction": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules." + }, + "firstPlayExpiration": { + "type": "string", + "format": "duration", + "description": "The amount of time that the license is valid after the license is first used to play content." + }, + "imageConstraintForAnalogComponentVideoRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "imageConstraintForAnalogComputerMonitorRestriction": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enables the Image Constraint For Analog Component Video Restriction in the license." + }, + "scmsRestriction": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive." + }, + "uncompressedDigitalAudioOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital audio." + }, + "uncompressedDigitalVideoOpl": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the output protection level for uncompressed digital video." + } + }, + "required": [ + "allowPassingVideoContentToUnknownOutput", + "digitalVideoOnlyContentRestriction", + "imageConstraintForAnalogComponentVideoRestriction", + "imageConstraintForAnalogComputerMonitorRestriction" + ], + "description": "Configures the Play Right in the PlayReady license." + }, + "ContentKeyPolicyProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description for the Policy." + }, + "options": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyOption" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Key Policy options." + } + }, + "required": [ + "options" + ], + "description": "The properties of the Content Key Policy." + }, + "ContentKeyPolicyRestriction": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyOpenRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyUnknownRestriction" + }, + { + "$ref": "#/definitions/ContentKeyPolicyTokenRestriction" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction." + }, + "ContentKeyPolicyRestrictionTokenKey": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicySymmetricTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyRsaTokenKey" + }, + { + "$ref": "#/definitions/ContentKeyPolicyX509CertificateTokenKey" + } + ], + "properties": {}, + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "ContentKeyPolicyRsaTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" + ] + }, + "exponent": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter exponent" + }, + "modulus": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The RSA Parameter modulus" + } + }, + "required": [ + "@odata.type", + "exponent", + "modulus" + ], + "description": "Specifies a RSA key for token validation" + }, + "ContentKeyPolicySymmetricTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" + ] + }, + "keyValue": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key value of the key" + } + }, + "required": [ + "@odata.type", + "keyValue" + ], + "description": "Specifies a symmetric key for token validation." + }, + "ContentKeyPolicyTokenClaim": { + "type": "object", + "properties": { + "claimType": { + "type": "string", + "description": "Token claim type." + }, + "claimValue": { + "type": "string", + "description": "Token claim value." + } + }, + "description": "Represents a token claim." + }, + "ContentKeyPolicyTokenRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyTokenRestriction" + ] + }, + "alternateVerificationKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of alternative verification keys." + }, + "audience": { + "type": "string", + "description": "The audience for the token." + }, + "issuer": { + "type": "string", + "description": "The token issuer." + }, + "openIdConnectDiscoveryDocument": { + "type": "string", + "description": "The OpenID connect discovery document." + }, + "primaryVerificationKey": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyRestrictionTokenKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key." + }, + "requiredClaims": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContentKeyPolicyTokenClaim" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of required token claims." + }, + "restrictionTokenType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Swt", + "Jwt" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of token." + } + }, + "required": [ + "@odata.type", + "audience", + "issuer", + "primaryVerificationKey", + "restrictionTokenType" + ], + "description": "Represents a token restriction. Provided token must match these requirements for successful license or key delivery." + }, + "ContentKeyPolicyUnknownConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version." + }, + "ContentKeyPolicyUnknownRestriction": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version." + }, + "ContentKeyPolicyWidevineConfiguration": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" + ] + }, + "widevineTemplate": { + "type": "string", + "description": "The Widevine template." + } + }, + "required": [ + "@odata.type", + "widevineTemplate" + ], + "description": "Specifies a configuration for Widevine licenses." + }, + "ContentKeyPolicyX509CertificateTokenKey": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" + ] + }, + "rawBody": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)" + } + }, + "required": [ + "@odata.type", + "rawBody" + ], + "description": "Specifies a certificate for token validation." + }, + "CopyAudio": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyAudio" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input audio bitstream." + }, + "CopyVideo": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.CopyVideo" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A codec flag, which tells the encoder to copy the input video bitstream without re-encoding." + }, + "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." + }, + "DefaultKey": { + "type": "object", + "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" + } + }, + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "Deinterlace": { + "type": "object", + "properties": { + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Off", + "AutoPixelAdaptive" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The deinterlacing mode. Defaults to AutoPixelAdaptive." + }, + "parity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "TopFieldFirst", + "BottomFieldFirst" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The field parity for de-interlacing, defaults to Auto." + } + }, + "description": "Describes the de-interlacing settings." + }, + "EnabledProtocols": { + "type": "object", + "properties": { + "dash": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable DASH protocol or not" + }, + "download": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable Download protocol or not" + }, + "hls": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable HLS protocol or not" + }, + "smoothStreaming": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enable SmoothStreaming protocol or not" + } + }, + "required": [ + "dash", + "download", + "hls", + "smoothStreaming" + ], + "description": "Class to specify which protocols are enabled" + }, + "EnvelopeEncryption": { + "type": "object", + "properties": { + "clearTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing which tracks should not be encrypted" + }, + "contentKeys": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyContentKeys" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "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." + }, + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "FaceDetectorPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.FaceDetectorPreset" + ] + }, + "blurType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Box", + "Low", + "Med", + "High", + "Black" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Blur type." + }, + "experimentalOptions": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Dictionary containing key value pairs for parameters not exposed in the preset itself" + }, + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Analyze", + "Redact", + "Combined" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "resolution": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SourceResolution", + "StandardDefinition" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present." + }, + "Filters": { + "type": "object", + "properties": { + "crop": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "deinterlace": { + "oneOf": [ + { + "$ref": "#/definitions/Deinterlace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the de-interlacing settings." + }, + "overlays": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Overlay" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of overlays to be applied to the input video. These could be audio, image or video overlays." + }, + "rotation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "None", + "Rotate0", + "Rotate90", + "Rotate180", + "Rotate270" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto." + } + }, + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "FilterTrackPropertyCondition": { + "type": "object", + "properties": { + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equal", + "NotEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The track property condition operation." + }, + "property": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Type", + "Name", + "Language", + "FourCC", + "Bitrate" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The track property type." + }, + "value": { + "type": "string", + "description": "The track property value." + } + }, + "required": [ + "operation", + "property", + "value" + ], + "description": "The class to specify one track property condition." + }, + "FilterTrackSelection": { + "type": "object", + "properties": { + "trackSelections": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackPropertyCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The track selections." + } + }, + "required": [ + "trackSelections" + ], + "description": "Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation." + }, + "FirstQuality": { + "type": "object", + "properties": { + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The first quality bitrate." + } + }, + "required": [ + "bitrate" + ], + "description": "Filter First Quality" + }, + "Format": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ImageFormat" + }, + { + "$ref": "#/definitions/MultiBitrateFormat" + } + ], + "properties": { + "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." + } + }, + "required": [ + "filenamePattern" + ], + "description": "Base class for output." + }, + "FromAllInputFile": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.FromAllInputFile" + ] + } + }, + "required": [ + "@odata.type" + ], + "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": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.FromEachInputFile" + ] + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "H264Layer": { + "type": "object", + "properties": { + "adaptiveBFrame": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field." + }, + "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)." + }, + "entropyMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Cabac", + "Cavlc" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + }, + "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." + }, + "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." + }, + "maxBitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "Baseline", + "Main", + "High", + "High422", + "High444" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "We currently support Baseline, Main, High, High422, High444. Default is Auto." + }, + "referenceFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "slices": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + } + }, + "required": [ + "bitrate" + ], + "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": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.H264Video" + ] + }, + "complexity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tells the encoder how to choose its encoding settings. The default value is Balanced." + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/H264Layer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of output H.264 layers to be produced by the encoder." + }, + "sceneChangeDetection": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the properties for encoding a video with the H.264 codec." + }, + "H265Layer": { + "type": "object", + "properties": { + "adaptiveBFrame": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "bitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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)." + }, + "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." + }, + "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." + }, + "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." + }, + "maxBitrate": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "profile": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "Main" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "We currently support Main. Default is Auto." + }, + "referenceFrames": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "slices": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + } + }, + "required": [ + "bitrate" + ], + "description": "Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec." + }, + "H265Video": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.H265Video" + ] + }, + "complexity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Speed", + "Balanced", + "Quality" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/H265Layer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of output H.265 layers to be produced by the encoder." + }, + "sceneChangeDetection": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes all the properties for encoding a video with the H.265 codec." + }, + "Hls": { + "type": "object", + "properties": { + "fragmentsPerTsSegment": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "Image": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgImage" + }, + { + "$ref": "#/definitions/PngImage" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Image" + ] + }, + "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." + }, + "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." + } + }, + "required": [ + "@odata.type", + "start" + ], + "description": "Describes the basic properties for generating thumbnails from the input video" + }, + "ImageFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JpgFormat" + }, + { + "$ref": "#/definitions/PngFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.ImageFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output image file." + }, + "InputDefinition": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/FromAllInputFile" + }, + { + "$ref": "#/definitions/FromEachInputFile" + }, + { + "$ref": "#/definitions/InputFile" + } + ], + "properties": { + "includedTracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackDescriptor" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of TrackDescriptors which define the metadata and selection of tracks in the input." + } + }, + "description": "Base class for defining an input. Use sub classes of this class to specify tracks selections and related metadata." + }, + "InputFile": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.InputFile" + ] + }, + "filename": { + "type": "string", + "description": "Name of the file that this input definition applies to." + } + }, + "required": [ + "@odata.type" + ], + "description": "An InputDefinition for a single file. TrackSelections are scoped to the file specified." + }, + "IPAccessControl": { + "type": "object", + "properties": { + "allow": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IPRange" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP allow list." + } + }, + "description": "The IP access control." + }, + "IPRange": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "The IP address." + }, + "name": { + "type": "string", + "description": "The friendly name for the IP address range." + }, + "subnetPrefixLength": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The subnet mask prefix length (see CIDR notation)." + } + }, + "description": "The IP address range in the CIDR scheme." + }, + "JobInput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputClip" + }, + { + "$ref": "#/definitions/JobInputs" + }, + { + "$ref": "#/definitions/JobInputSequence" + } + ], + "properties": {}, + "description": "Base class for inputs to a Job." + }, + "JobInputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the input Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset for input into a Job." + }, + "JobInputClip": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobInputAsset" + }, + { + "$ref": "#/definitions/JobInputHttp" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputClip" + ] + }, + "end": { + "oneOf": [ + { + "$ref": "#/definitions/ClipTime" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + }, + "files": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each." + }, + "inputDefinitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/InputDefinition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata." + }, + "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'." + }, + "start": { + "oneOf": [ + { + "$ref": "#/definitions/ClipTime" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents input files for a Job." + }, + "JobInputHttp": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputHttp" + ] + }, + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Represents HTTPS job input." + }, + "JobInputs": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputs" + ] + }, + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobInput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of inputs to a Job." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes a list of inputs to a Job." + }, + "JobInputSequence": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobInputSequence" + ] + }, + "inputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobInputClip" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "JobInputs that make up the timeline." + } + }, + "required": [ + "@odata.type" + ], + "description": "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input." + }, + "JobOutput": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/JobOutputAsset" + } + ], + "properties": { + "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." + } + }, + "description": "Describes all the properties of a JobOutput." + }, + "JobOutputAsset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JobOutputAsset" + ] + }, + "assetName": { + "type": "string", + "description": "The name of the output Asset." + } + }, + "required": [ + "@odata.type", + "assetName" + ], + "description": "Represents an Asset used as a JobOutput." + }, + "JobProperties": { + "type": "object", + "properties": { + "correlationData": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Customer provided key, value pairs that will be returned in Job and JobOutput state events." + }, + "description": { + "type": "string", + "description": "Optional customer supplied description of the Job." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/JobInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base class for inputs to a Job." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JobOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The outputs for the Job." + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "input", + "outputs" + ], + "description": "Properties of the Job." + }, + "JpgFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing JPEG thumbnails." + }, + "JpgImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.JpgImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/JpgLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output JPEG image layers to be produced by the encoder." + }, + "spriteColumn": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of JPEG images from the input video." + }, + "JpgLayer": { + "type": "object", + "properties": { + "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." + }, + "quality": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The compression quality of the JPEG output. Range is from 0-100 and the default is 70." + }, + "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." + } + }, + "description": "Describes the settings to produce a JPEG image from the input video." + }, + "KeyVaultProperties": { + "type": "object", + "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)." + } + } + }, + "LiveEventEncoding": { + "type": "object", + "properties": { + "encodingType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Standard", + "Premium1080p" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + }, + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies how the input video will be resized to fit the desired output resolution(s). Default is None." + } + }, + "description": "Specifies the live event type and optional encoding settings for encoding live events." + }, + "LiveEventEndpoint": { + "type": "object", + "properties": { + "protocol": { + "type": "string", + "description": "The endpoint protocol." + }, + "url": { + "type": "string", + "description": "The endpoint URL." + } + }, + "description": "The live event endpoint." + }, + "LiveEventInput": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInputAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for live event input." + }, + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The input endpoints for the live event." + }, + "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." + }, + "streamingProtocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "FragmentedMP4", + "RTMP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The input protocol for the live event. This is specified at creation time and cannot be updated." + } + }, + "required": [ + "streamingProtocol" + ], + "description": "The live event input." + }, + "LiveEventInputAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for live event input." + }, + "LiveEventInputTrackSelection": { + "type": "object", + "properties": { + "operation": { + "type": "string", + "description": "Comparing operation. This property is reserved for future use, any value set on this property will be ignored." + }, + "property": { + "type": "string", + "description": "Property name to select. 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", + "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." + } + }, + "required": [ + "trackName" + ], + "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." + }, + "LiveEventPreview": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreviewAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control for the live event preview endpoint." + }, + "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." + }, + "endpoints": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventEndpoint" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The endpoints for preview. Do not share the preview URL with the live event audience." + }, + "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." + } + }, + "description": "Live event preview settings." + }, + "LiveEventPreviewAccessControl": { + "type": "object", + "properties": { + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "The IP access control for the live event preview endpoint." + }, + "LiveEventProperties": { + "type": "object", + "properties": { + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "description": { + "type": "string", + "description": "A description for the live event." + }, + "encoding": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventEncoding" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies the live event type and optional encoding settings for encoding live events." + }, + "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." + }, + "input": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The live event input." + }, + "preview": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventPreview" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Live event preview settings." + }, + "streamOptions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Default", + "LowLatency" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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'." + }, + "transcriptions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventTranscription" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature." + }, + "useStaticHostname": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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" + } + }, + "required": [ + "input" + ], + "description": "The live event properties." + }, + "LiveEventTranscription": { + "type": "object", + "properties": { + "inputTrackSelection": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LiveEventInputTrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "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." + }, + "outputTranscriptionTrack": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventOutputTranscriptionTrack" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "LiveOutputProperties": { + "type": "object", + "properties": { + "archiveWindowLength": { + "type": "string", + "format": "duration", + "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." + }, + "assetName": { + "type": "string", + "description": "The asset that the live output will write to." + }, + "description": { + "type": "string", + "description": "The description of the live output." + }, + "hls": { + "oneOf": [ + { + "$ref": "#/definitions/Hls" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "HTTP Live Streaming (HLS) packing setting for the live output." + }, + "manifestName": { + "type": "string", + "description": "The manifest file name. If not provided, the service will generate one automatically." + }, + "outputSnapTime": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The initial timestamp that the live output will start at, any content before this value will not be archived." + } + }, + "required": [ + "archiveWindowLength", + "assetName" + ], + "description": "The JSON object that contains the properties required to create a live output." + }, + "MediaFilterProperties": { + "type": "object", + "properties": { + "firstQuality": { + "oneOf": [ + { + "$ref": "#/definitions/FirstQuality" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Filter First Quality" + }, + "presentationTimeRange": { + "oneOf": [ + { + "$ref": "#/definitions/PresentationTimeRange" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The presentation time range, this is asset related and not recommended for Account Filter." + }, + "tracks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/FilterTrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tracks selection conditions." + } + }, + "description": "The Media Filter properties." + }, + "MediaServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemAssigned", + "None" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The identity type." + } + }, + "required": [ + "type" + ] + }, + "MediaServiceProperties": { + "type": "object", + "properties": { + "encryption": { + "oneOf": [ + { + "$ref": "#/definitions/AccountEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "storageAccounts": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StorageAccount" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage accounts for this resource." + }, + "storageAuthentication": { + "oneOf": [ + { + "type": "string", + "enum": [ + "System", + "ManagedIdentity" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Properties of the Media Services account." + }, + "mediaServices_accountFilters_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Account Filter name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaFilterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "accountFilters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/accountFilters" + }, + "mediaServices_assets_assetFilters_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Asset Filter name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MediaFilterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Media Filter properties." + }, + "type": { + "type": "string", + "enum": [ + "assetFilters" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets/assetFilters" + }, + "mediaServices_assets_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Asset name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AssetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Asset properties." + }, + "type": { + "type": "string", + "enum": [ + "assets" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/assets" + }, + "mediaServices_contentKeyPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Content Key Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContentKeyPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of the Content Key Policy." + }, + "type": { + "type": "string", + "enum": [ + "contentKeyPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/contentKeyPolicies" + }, + "mediaservices_liveEvents_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 32 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the live event, maximum length is 32." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveEventProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The live event properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "liveEvents" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents" + }, + "mediaservices_liveEvents_liveOutputs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^([a-zA-Z0-9])+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the live output." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LiveOutputProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The JSON object that contains the properties required to create a live output." + }, + "type": { + "type": "string", + "enum": [ + "liveOutputs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/liveEvents/liveOutputs" + }, + "mediaservices_privateEndpointConnections_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "type": { + "type": "string", + "enum": [ + "privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/privateEndpointConnections" + }, + "mediaservices_streamingEndpoints_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "minLength": 1, + "maxLength": 24 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the streaming endpoint, maximum length is 24." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The streaming endpoint properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "streamingEndpoints" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaservices/streamingEndpoints" + }, + "mediaServices_streamingLocators_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Locator name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingLocatorProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Streaming Locator." + }, + "type": { + "type": "string", + "enum": [ + "streamingLocators" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingLocators" + }, + "mediaServices_streamingPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Streaming Policy name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingPolicyProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of Streaming Policy" + }, + "type": { + "type": "string", + "enum": [ + "streamingPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/streamingPolicies" + }, + "mediaServices_transforms_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Transform name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/TransformProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A Transform." + }, + "type": { + "type": "string", + "enum": [ + "transforms" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms" + }, + "mediaServices_transforms_jobs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-05-01" + ] + }, + "name": { + "type": "string", + "description": "The Job name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/JobProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Job." + }, + "type": { + "type": "string", + "enum": [ + "jobs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Media/mediaServices/transforms/jobs" + }, + "Mp4Format": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Mp4Format" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for an output ISO MP4 file." + }, + "MultiBitrateFormat": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Mp4Format" + }, + { + "$ref": "#/definitions/TransportStreamFormat" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.MultiBitrateFormat" + ] + }, + "outputFiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/OutputFile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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 ." + } + }, + "required": [ + "@odata.type" + ], + "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." + }, + "NoEncryption": { + "type": "object", + "properties": { + "enabledProtocols": { + "oneOf": [ + { + "$ref": "#/definitions/EnabledProtocols" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify which protocols are enabled" + } + }, + "description": "Class for NoEncryption scheme" + }, + "OutputFile": { + "type": "object", + "properties": { + "labels": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "labels" + ], + "description": "Represents an output file produced." + }, + "Overlay": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioOverlay" + }, + { + "$ref": "#/definitions/VideoOverlay" + } + ], + "properties": { + "audioGainLevel": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0." + }, + "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)." + }, + "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." + } + }, + "required": [ + "inputLabel" + ], + "description": "Base type for all overlays - image, audio or video." + }, + "PngFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the settings for producing PNG thumbnails." + }, + "PngImage": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.PngImage" + ] + }, + "layers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/PngLayer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of output PNG image layers to be produced by the encoder." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for producing a series of PNG images from the input video." + }, + "PngLayer": { + "type": "object", + "properties": { + "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." + }, + "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." + } + }, + "description": "Describes the settings to produce a PNG image from the input video." + }, + "PresentationTimeRange": { + "type": "object", + "properties": { + "endTimestamp": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The absolute end time boundary." + }, + "forceEndTimestamp": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The indicator of forcing existing of end time stamp." + }, + "liveBackoffDuration": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The relative to end right edge." + }, + "presentationWindowDuration": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The relative to end sliding window." + }, + "startTimestamp": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The absolute start time boundary." + }, + "timescale": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The time scale of time stamps." + } + }, + "description": "The presentation time range, this is asset related and not recommended for Account Filter." + }, + "Preset": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/FaceDetectorPreset" + }, + { + "$ref": "#/definitions/AudioAnalyzerPreset" + }, + { + "$ref": "#/definitions/BuiltInStandardEncoderPreset" + }, + { + "$ref": "#/definitions/StandardEncoderPreset" + } + ], + "properties": {}, + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "PrivateEndpoint": { + "type": "object", + "properties": {}, + "description": "The Private Endpoint resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpoint" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Private Endpoint resource." + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateLinkServiceConnectionState" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "actionsRequired": { + "type": "string", + "description": "A message indicating if changes on the service provider require any updates on the consumer." + }, + "description": { + "type": "string", + "description": "The reason for approval/rejection of the connection." + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Pending", + "Approved", + "Rejected" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." + } + }, + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "Rectangle": { + "type": "object", + "properties": { + "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%)." + }, + "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%)." + } + }, + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "SelectAudioTrackByAttribute": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.SelectAudioTrackByAttribute" + ] + }, + "attribute": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Bitrate", + "Language" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The TrackAttribute to filter the tracks by." + }, + "filter": { + "oneOf": [ + { + "type": "string", + "enum": [ + "All", + "Top", + "Bottom", + "ValueEquals" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type", + "attribute", + "filter" + ], + "description": "Select audio tracks from the input by specifying an attribute and an attribute filter." + }, + "SelectAudioTrackById": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.SelectAudioTrackById" + ] + }, + "trackId": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track identifier to select" + } + }, + "required": [ + "@odata.type", + "trackId" + ], + "description": "Select audio tracks from the input by specifying a track identifier." + }, + "SelectVideoTrackByAttribute": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.SelectVideoTrackByAttribute" + ] + }, + "attribute": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Bitrate", + "Language" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The TrackAttribute to filter the tracks by." + }, + "filter": { + "oneOf": [ + { + "type": "string", + "enum": [ + "All", + "Top", + "Bottom", + "ValueEquals" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type", + "attribute", + "filter" + ], + "description": "Select video tracks from the input by specifying an attribute and an attribute filter." + }, + "SelectVideoTrackById": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.SelectVideoTrackById" + ] + }, + "trackId": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track identifier to select" + } + }, + "required": [ + "@odata.type", + "trackId" + ], + "description": "Select video tracks from the input by specifying a track identifier." + }, + "StandardEncoderPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.StandardEncoderPreset" + ] + }, + "codecs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Codec" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of codecs to be used when encoding the input video." + }, + "filters": { + "oneOf": [ + { + "$ref": "#/definitions/Filters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding." + }, + "formats": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Format" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of outputs to be produced by the encoder." + } + }, + "required": [ + "@odata.type", + "codecs", + "formats" + ], + "description": "Describes all the settings to be used when encoding the input video with the Standard Encoder." + }, + "StorageAccount": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Primary", + "Secondary" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the storage account." + } + }, + "required": [ + "type" + ], + "description": "The storage account details." + }, + "StreamingEndpointAccessControl": { + "type": "object", + "properties": { + "akamai": { + "oneOf": [ + { + "$ref": "#/definitions/AkamaiAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Akamai access control" + }, + "ip": { + "oneOf": [ + { + "$ref": "#/definitions/IPAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The IP access control." + } + }, + "description": "Streaming endpoint access control definition." + }, + "StreamingEndpointProperties": { + "type": "object", + "properties": { + "accessControl": { + "oneOf": [ + { + "$ref": "#/definitions/StreamingEndpointAccessControl" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Streaming endpoint access control definition." + }, + "availabilitySetName": { + "type": "string", + "description": "This feature is deprecated, do not set a value for this property." + }, + "cdnEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The CDN enabled flag." + }, + "cdnProfile": { + "type": "string", + "description": "The CDN profile name." + }, + "cdnProvider": { + "type": "string", + "description": "The CDN provider name." + }, + "crossSiteAccessPolicies": { + "oneOf": [ + { + "$ref": "#/definitions/CrossSiteAccessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The client access policy." + }, + "customHostNames": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The custom host names of the streaming endpoint" + }, + "description": { + "type": "string", + "description": "The streaming endpoint description." + }, + "maxCacheAge": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Max cache age" + }, + "scaleUnits": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of scale units. Use the Scale operation to adjust this value." + } + }, + "required": [ + "scaleUnits" + ], + "description": "The streaming endpoint properties." + }, + "StreamingLocatorContentKey": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ID of Content Key" + }, + "labelReferenceInStreamingPolicy": { + "type": "string", + "description": "Label of Content Key as specified in the Streaming Policy" + }, + "value": { + "type": "string", + "description": "Value of Content Key" + } + }, + "required": [ + "id" + ], + "description": "Class for content key in Streaming Locator" + }, + "StreamingLocatorProperties": { + "type": "object", + "properties": { + "alternativeMediaId": { + "type": "string", + "description": "Alternative Media ID of this Streaming Locator" + }, + "assetName": { + "type": "string", + "description": "Asset Name" + }, + "contentKeys": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingLocatorContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The ContentKeys used by this Streaming Locator." + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Name of the default ContentKeyPolicy used by this Streaming Locator." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the Streaming Locator." + }, + "filters": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of asset or account filters which apply to this streaming locator" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the Streaming Locator." + }, + "streamingLocatorId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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'" + } + }, + "required": [ + "assetName", + "streamingPolicyName" + ], + "description": "Properties of the Streaming Locator." + }, + "StreamingPolicyContentKey": { + "type": "object", + "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": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackSelection" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tracks which use this content key" + } + }, + "description": "Class to specify properties of content key" + }, + "StreamingPolicyContentKeys": { + "type": "object", + "properties": { + "defaultKey": { + "oneOf": [ + { + "$ref": "#/definitions/DefaultKey" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class to specify properties of default content key for each encryption scheme" + }, + "keyToTrackMappings": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/StreamingPolicyContentKey" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Representing tracks needs separate content key" + } + }, + "description": "Class to specify properties of all content keys in Streaming Policy" + }, + "StreamingPolicyFairPlayConfiguration": { + "type": "object", + "properties": { + "allowPersistentLicense": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "All license to be persistent or not" + }, + "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." + } + }, + "required": [ + "allowPersistentLicense" + ], + "description": "Class to specify configurations of FairPlay in Streaming Policy" + }, + "StreamingPolicyPlayReadyConfiguration": { + "type": "object", + "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" + } + }, + "description": "Class to specify configurations of PlayReady in Streaming Policy" + }, + "StreamingPolicyProperties": { + "type": "object", + "properties": { + "commonEncryptionCbcs": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCbcs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for CommonEncryptionCbcs encryption scheme" + }, + "commonEncryptionCenc": { + "oneOf": [ + { + "$ref": "#/definitions/CommonEncryptionCenc" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for envelope encryption scheme" + }, + "defaultContentKeyPolicyName": { + "type": "string", + "description": "Default ContentKey used by current Streaming Policy" + }, + "envelopeEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/EnvelopeEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for EnvelopeEncryption encryption scheme" + }, + "noEncryption": { + "oneOf": [ + { + "$ref": "#/definitions/NoEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Class for NoEncryption scheme" + } + }, + "description": "Class to specify properties of Streaming Policy" + }, + "StreamingPolicyWidevineConfiguration": { + "type": "object", + "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." + } + }, + "description": "Class to specify configurations of Widevine in Streaming Policy" + }, + "TrackDescriptor": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/AudioTrackDescriptor" + }, + { + "$ref": "#/definitions/VideoTrackDescriptor" + } + ], + "properties": {}, + "description": "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job" + }, + "TrackPropertyCondition": { + "type": "object", + "properties": { + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Equal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property condition operation." + }, + "property": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "FourCC" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Track property type." + }, + "value": { + "type": "string", + "description": "Track property value" + } + }, + "required": [ + "operation", + "property" + ], + "description": "Class to specify one track property condition" + }, + "TrackSelection": { + "type": "object", + "properties": { + "trackSelections": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TrackPropertyCondition" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "TrackSelections is a track property condition list which can specify track(s)" + } + }, + "description": "Class to select a track" + }, + "TransformOutput": { + "type": "object", + "properties": { + "onError": { + "oneOf": [ + { + "type": "string", + "enum": [ + "StopProcessingJob", + "ContinueJob" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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'." + }, + "preset": { + "oneOf": [ + { + "$ref": "#/definitions/Preset" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed." + }, + "relativePriority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Low", + "Normal", + "High" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "preset" + ], + "description": "Describes the properties of a TransformOutput, which are the rules to be applied while generating the desired output." + }, + "TransformProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An optional verbose description of the Transform." + }, + "outputs": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TransformOutput" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An array of one or more TransformOutputs that the Transform should generate." + } + }, + "required": [ + "outputs" + ], + "description": "A Transform." + }, + "TransportStreamFormat": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.TransportStreamFormat" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output video file(s)." + }, + "UtcClipTime": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.UtcClipTime" + ] + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time position on the timeline of the input media based on Utc time." + } + }, + "required": [ + "@odata.type", + "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." + }, + "Video": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/H265Video" + }, + { + "$ref": "#/definitions/Image" + }, + { + "$ref": "#/definitions/H264Video" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.Video" + ] + }, + "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": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "AutoSize", + "AutoFit" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize." + }, + "syncMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Auto", + "Passthrough", + "Cfr", + "Vfr" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Video Sync Mode." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the basic properties for encoding the input video." + }, + "VideoAnalyzerPreset": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoAnalyzerPreset" + ] + }, + "insightsToExtract": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AudioInsightsOnly", + "VideoInsightsOnly", + "AllInsights" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + } + }, + "required": [ + "@odata.type" + ], + "description": "A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file." + }, + "VideoOverlay": { + "type": "object", + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoOverlay" + ] + }, + "cropRectangle": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + }, + "opacity": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "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." + }, + "position": { + "oneOf": [ + { + "$ref": "#/definitions/Rectangle" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a rectangular window applied to the input media before processing it." + } + }, + "required": [ + "@odata.type" + ], + "description": "Describes the properties of a video overlay." + }, + "VideoTrackDescriptor": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/SelectVideoTrackByAttribute" + }, + { + "$ref": "#/definitions/SelectVideoTrackById" + } + ], + "properties": { + "@odata.type": { + "type": "string", + "enum": [ + "#Microsoft.Media.VideoTrackDescriptor" + ] + } + }, + "required": [ + "@odata.type" + ], + "description": "A TrackSelection to select video tracks." + } + } +}