diff --git a/lib/services/mediaServicesManagement/LICENSE.txt b/lib/services/mediaServicesManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/mediaServicesManagement/LICENSE.txt +++ b/lib/services/mediaServicesManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/mediaServicesManagement/README.md b/lib/services/mediaServicesManagement/README.md index 0a054578d9..f931bb9128 100644 --- a/lib/services/mediaServicesManagement/README.md +++ b/lib/services/mediaServicesManagement/README.md @@ -43,6 +43,3 @@ msRestAzure.interactiveLogin().then((creds) => { ### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FmediaServicesManagement%2FREADME.png) diff --git a/lib/services/mediaServicesManagement/lib/models/audioAnalyzerPreset.js b/lib/services/mediaServicesManagement/lib/models/audioAnalyzerPreset.js index e7f3b1f80f..1a7ba34e06 100644 --- a/lib/services/mediaServicesManagement/lib/models/audioAnalyzerPreset.js +++ b/lib/services/mediaServicesManagement/lib/models/audioAnalyzerPreset.js @@ -24,14 +24,20 @@ class AudioAnalyzerPreset extends models['Preset'] { * Create a AudioAnalyzerPreset. * @property {string} [audioLanguage] 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. + * The list of supported languages are English ('en-US' and 'en-GB'), Spanish + * ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese + * ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), + * Arabic ('ar-EG'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean + * ('ko-KR'). If you know the language of your content, it is recommended + * that you specify it. If the language isn't specified or set to null, + * automatic language detection will choose the first language detected and + * process with the selected language for the duration of the file. This + * language detection feature currently supports English, Chinese, French, + * German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not + * currently support dynamically switching between languages after the first + * language is detected. The automatic detection works best with audio + * recordings with clearly discernable speech. If automatic detection fails + * to find the language, transcription would fallback to 'en-US'." */ constructor() { super(); diff --git a/lib/services/mediaServicesManagement/lib/models/audioOverlay.js b/lib/services/mediaServicesManagement/lib/models/audioOverlay.js index 0997c926c2..589cdf47dc 100644 --- a/lib/services/mediaServicesManagement/lib/models/audioOverlay.js +++ b/lib/services/mediaServicesManagement/lib/models/audioOverlay.js @@ -45,7 +45,7 @@ class AudioOverlay extends models['Overlay'] { className: 'AudioOverlay', modelProperties: { inputLabel: { - required: false, + required: true, serializedName: 'inputLabel', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/cbcsDrmConfiguration.js b/lib/services/mediaServicesManagement/lib/models/cbcsDrmConfiguration.js index 32817c69d0..f1de2be9f9 100644 --- a/lib/services/mediaServicesManagement/lib/models/cbcsDrmConfiguration.js +++ b/lib/services/mediaServicesManagement/lib/models/cbcsDrmConfiguration.js @@ -19,21 +19,36 @@ class CbcsDrmConfiguration { /** * Create a CbcsDrmConfiguration. * @property {object} [fairPlay] FairPlay configurations - * @property {string} [fairPlay.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [fairPlay.customLicenseAcquisitionUrlTemplate] 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. * @property {boolean} [fairPlay.allowPersistentLicense] All license to be * persistent or not * @property {object} [playReady] PlayReady configurations - * @property {string} [playReady.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [playReady.customLicenseAcquisitionUrlTemplate] + * 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. * @property {string} [playReady.playReadyCustomAttributes] Custom attributes * for PlayReady * @property {object} [widevine] Widevine configurations - * @property {string} [widevine.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [widevine.customLicenseAcquisitionUrlTemplate] 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/cencDrmConfiguration.js b/lib/services/mediaServicesManagement/lib/models/cencDrmConfiguration.js index 16adddcf21..085ef44836 100644 --- a/lib/services/mediaServicesManagement/lib/models/cencDrmConfiguration.js +++ b/lib/services/mediaServicesManagement/lib/models/cencDrmConfiguration.js @@ -19,15 +19,25 @@ class CencDrmConfiguration { /** * Create a CencDrmConfiguration. * @property {object} [playReady] PlayReady configurations - * @property {string} [playReady.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [playReady.customLicenseAcquisitionUrlTemplate] + * 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. * @property {string} [playReady.playReadyCustomAttributes] Custom attributes * for PlayReady * @property {object} [widevine] Widevine configurations - * @property {string} [widevine.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [widevine.customLicenseAcquisitionUrlTemplate] 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/commonEncryptionCbcs.js b/lib/services/mediaServicesManagement/lib/models/commonEncryptionCbcs.js index 9a79c3f8e7..616bdcb5cf 100644 --- a/lib/services/mediaServicesManagement/lib/models/commonEncryptionCbcs.js +++ b/lib/services/mediaServicesManagement/lib/models/commonEncryptionCbcs.js @@ -39,21 +39,36 @@ class CommonEncryptionCbcs { * @property {object} [drm] Configuration of DRMs for current encryption * scheme * @property {object} [drm.fairPlay] FairPlay configurations - * @property {string} [drm.fairPlay.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [drm.fairPlay.customLicenseAcquisitionUrlTemplate] + * 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. * @property {boolean} [drm.fairPlay.allowPersistentLicense] All license to * be persistent or not * @property {object} [drm.playReady] PlayReady configurations - * @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] + * 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. * @property {string} [drm.playReady.playReadyCustomAttributes] Custom * attributes for PlayReady * @property {object} [drm.widevine] Widevine configurations - * @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] + * 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/commonEncryptionCenc.js b/lib/services/mediaServicesManagement/lib/models/commonEncryptionCenc.js index e97dd61a95..8c6ed98082 100644 --- a/lib/services/mediaServicesManagement/lib/models/commonEncryptionCenc.js +++ b/lib/services/mediaServicesManagement/lib/models/commonEncryptionCenc.js @@ -39,15 +39,25 @@ class CommonEncryptionCenc { * @property {object} [drm] Configuration of DRMs for CommonEncryptionCenc * encryption scheme * @property {object} [drm.playReady] PlayReady configurations - * @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] + * 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. * @property {string} [drm.playReady.playReadyCustomAttributes] Custom * attributes for PlayReady * @property {object} [drm.widevine] Widevine configurations - * @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] The - * template for a customer service to deliver keys to end users. Not needed - * when using Azure Media Services for issuing keys. + * @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] + * 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/envelopeEncryption.js b/lib/services/mediaServicesManagement/lib/models/envelopeEncryption.js index 9cac6799a0..9ff81c57c7 100644 --- a/lib/services/mediaServicesManagement/lib/models/envelopeEncryption.js +++ b/lib/services/mediaServicesManagement/lib/models/envelopeEncryption.js @@ -36,9 +36,14 @@ class EnvelopeEncryption { * Default Key * @property {array} [contentKeys.keyToTrackMappings] Representing tracks * needs separate content key - * @property {string} [customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * @property {string} [customKeyAcquisitionUrlTemplate] 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/faceDetectorPreset.js b/lib/services/mediaServicesManagement/lib/models/faceDetectorPreset.js new file mode 100644 index 0000000000..c102d778f8 --- /dev/null +++ b/lib/services/mediaServicesManagement/lib/models/faceDetectorPreset.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Describes all the settings to be used when analyzing a video in order to + * detect all the faces present. + * + * @extends models['Preset'] + */ +class FaceDetectorPreset extends models['Preset'] { + /** + * Create a FaceDetectorPreset. + * @property {string} [resolution] 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. Possible values include: 'SourceResolution', + * 'StandardDefinition' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of FaceDetectorPreset + * + * @returns {object} metadata of FaceDetectorPreset + * + */ + mapper() { + return { + required: false, + serializedName: '#Microsoft.Media.FaceDetectorPreset', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: '@odata.type', + clientName: 'odatatype' + }, + uberParent: 'Preset', + className: 'FaceDetectorPreset', + modelProperties: { + odatatype: { + required: true, + serializedName: '@odata\\.type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + resolution: { + required: false, + serializedName: 'resolution', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = FaceDetectorPreset; diff --git a/lib/services/mediaServicesManagement/lib/models/format.js b/lib/services/mediaServicesManagement/lib/models/format.js index 9b056cdd95..84ad1c0eb7 100644 --- a/lib/services/mediaServicesManagement/lib/models/format.js +++ b/lib/services/mediaServicesManagement/lib/models/format.js @@ -17,7 +17,7 @@ class Format { /** * Create a Format. - * @property {string} [filenamePattern] The pattern of the file names for the + * @property {string} filenamePattern 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 @@ -50,7 +50,7 @@ class Format { className: 'Format', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/h264Layer.js b/lib/services/mediaServicesManagement/lib/models/h264Layer.js index 5fceec40a0..4d6b28afa9 100644 --- a/lib/services/mediaServicesManagement/lib/models/h264Layer.js +++ b/lib/services/mediaServicesManagement/lib/models/h264Layer.js @@ -91,7 +91,7 @@ class H264Layer extends models['VideoLayer'] { } }, bitrate: { - required: false, + required: true, serializedName: 'bitrate', type: { name: 'Number' diff --git a/lib/services/mediaServicesManagement/lib/models/image.js b/lib/services/mediaServicesManagement/lib/models/image.js index b8af5fbf09..0143043624 100644 --- a/lib/services/mediaServicesManagement/lib/models/image.js +++ b/lib/services/mediaServicesManagement/lib/models/image.js @@ -21,7 +21,7 @@ const models = require('./index'); class Image extends models['Video'] { /** * Create a Image. - * @property {string} [start] The position in the input video from where to + * @property {string} start 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 @@ -90,7 +90,7 @@ class Image extends models['Video'] { } }, start: { - required: false, + required: true, serializedName: 'start', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/imageFormat.js b/lib/services/mediaServicesManagement/lib/models/imageFormat.js index 4b692126c0..cf439b43a8 100644 --- a/lib/services/mediaServicesManagement/lib/models/imageFormat.js +++ b/lib/services/mediaServicesManagement/lib/models/imageFormat.js @@ -45,7 +45,7 @@ class ImageFormat extends models['Format'] { className: 'ImageFormat', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/index.d.ts b/lib/services/mediaServicesManagement/lib/models/index.d.ts index 1b5ae7daa7..06d25caa60 100644 --- a/lib/services/mediaServicesManagement/lib/models/index.d.ts +++ b/lib/services/mediaServicesManagement/lib/models/index.d.ts @@ -1023,6 +1023,26 @@ export interface AacAudio extends Audio { profile?: string; } +/** + * Describes all the settings to be used when analyzing a video in order to detect all the faces + * present. +*/ +export interface FaceDetectorPreset extends Preset { + /** + * 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. Possible + * values include: 'SourceResolution', 'StandardDefinition' + */ + resolution?: string; +} + /** * 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 @@ -1031,12 +1051,18 @@ export interface AacAudio extends Audio { export interface AudioAnalyzerPreset extends Preset { /** * 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. + * tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and + * 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese + * ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG'), + * Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your + * content, it is recommended that you specify it. If the language isn't specified or set to + * null, automatic language detection will choose the first language detected and process with + * the selected language for the duration of the file. This language detection feature currently + * supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and + * Portuguese. It does not currently support dynamically switching between languages after the + * first language is detected. The automatic detection works best with audio recordings with + * clearly discernable speech. If automatic detection fails to find the language, transcription + * would fallback to 'en-US'." */ audioLanguage?: string; } @@ -1051,7 +1077,7 @@ export interface Overlay { * 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. */ - inputLabel?: string; + inputLabel: string; /** * 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 @@ -1128,7 +1154,7 @@ export interface Image extends Video { * 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. */ - start?: string; + start: string; /** * 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 @@ -1155,7 +1181,7 @@ export interface Format { * 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. */ - filenamePattern?: string; + filenamePattern: string; /** * Polymorphic Discriminator */ @@ -1292,7 +1318,7 @@ export interface VideoLayer extends Layer { * The average bitrate in bits per second at which to encode the input video when generating this * layer. This is a required field. */ - bitrate?: number; + bitrate: number; /** * 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. @@ -1407,7 +1433,7 @@ export interface OutputFile { * 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. */ - labels?: string[]; + labels: string[]; } /** @@ -1470,11 +1496,11 @@ export interface StandardEncoderPreset extends Preset { /** * The list of codecs to be used when encoding the input video. */ - codecs?: Codec[]; + codecs: Codec[]; /** * The list of outputs to be produced by the encoder. */ - formats?: Format[]; + formats: Format[]; } /** @@ -1581,7 +1607,7 @@ export interface JobInput { */ export interface JobInputClip extends JobInput { /** - * List of files. Required for JobInputHttp. + * List of files. Required for JobInputHttp. Maximum of 4000 characters each. */ files?: string[]; /** @@ -1619,8 +1645,9 @@ export interface JobInputAsset extends JobInputClip { */ export interface JobInputHttp extends JobInputClip { /** - * 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. + * 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. */ baseUri?: string; } @@ -1755,7 +1782,7 @@ export interface Job extends ProxyResource { */ priority?: string; /** - * Customer provided correlation data that will be returned in Job and JobOutput state events. + * Customer provided key, value pairs that will be returned in Job and JobOutput state events. */ correlationData?: { [propertyName: string]: string }; } @@ -1839,8 +1866,12 @@ export interface StreamingPolicyContentKeys { */ export interface StreamingPolicyPlayReadyConfiguration { /** - * The template for a customer service to deliver keys to end users. Not needed when using Azure - * Media Services for issuing keys. + * 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. */ customLicenseAcquisitionUrlTemplate?: string; /** @@ -1854,8 +1885,12 @@ export interface StreamingPolicyPlayReadyConfiguration { */ export interface StreamingPolicyWidevineConfiguration { /** - * The template for a customer service to deliver keys to end users. Not needed when using Azure - * Media Services for issuing keys. + * 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. */ customLicenseAcquisitionUrlTemplate?: string; } @@ -1865,8 +1900,12 @@ export interface StreamingPolicyWidevineConfiguration { */ export interface StreamingPolicyFairPlayConfiguration { /** - * The template for a customer service to deliver keys to end users. Not needed when using Azure - * Media Services for issuing keys. + * 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. */ customLicenseAcquisitionUrlTemplate?: string; /** @@ -1957,7 +1996,12 @@ export interface EnvelopeEncryption { */ contentKeys?: StreamingPolicyContentKeys; /** - * KeyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys + * 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. */ customKeyAcquisitionUrlTemplate?: string; } @@ -2156,6 +2200,10 @@ export interface StreamingLocator extends ProxyResource { * Alternative Media ID of this Streaming Locator */ alternativeMediaId?: string; + /** + * A list of asset or account filters which apply to this streaming locator + */ + filters?: string[]; } /** diff --git a/lib/services/mediaServicesManagement/lib/models/index.js b/lib/services/mediaServicesManagement/lib/models/index.js index 60c890672c..5c3d127956 100644 --- a/lib/services/mediaServicesManagement/lib/models/index.js +++ b/lib/services/mediaServicesManagement/lib/models/index.js @@ -78,6 +78,7 @@ exports.Preset = require('./preset'); exports.Codec = require('./codec'); exports.Audio = require('./audio'); exports.AacAudio = require('./aacAudio'); +exports.FaceDetectorPreset = require('./faceDetectorPreset'); exports.AudioAnalyzerPreset = require('./audioAnalyzerPreset'); exports.Overlay = require('./overlay'); exports.AudioOverlay = require('./audioOverlay'); @@ -195,6 +196,7 @@ exports.discriminators = { 'Codec' : exports.Codec, 'Codec.#Microsoft.Media.Audio' : exports.Audio, 'Codec.#Microsoft.Media.AacAudio' : exports.AacAudio, + 'Preset.#Microsoft.Media.FaceDetectorPreset' : exports.FaceDetectorPreset, 'Preset.#Microsoft.Media.AudioAnalyzerPreset' : exports.AudioAnalyzerPreset, 'Overlay' : exports.Overlay, 'Overlay.#Microsoft.Media.AudioOverlay' : exports.AudioOverlay, diff --git a/lib/services/mediaServicesManagement/lib/models/job.js b/lib/services/mediaServicesManagement/lib/models/job.js index 39afe3914a..ae5bedeb6f 100644 --- a/lib/services/mediaServicesManagement/lib/models/job.js +++ b/lib/services/mediaServicesManagement/lib/models/job.js @@ -37,7 +37,7 @@ class Job extends models['ProxyResource'] { * processed. Higher priority jobs are processed before lower priority jobs. * If not set, the default is normal. Possible values include: 'Low', * 'Normal', 'High' - * @property {object} [correlationData] Customer provided correlation data + * @property {object} [correlationData] Customer provided key, value pairs * that will be returned in Job and JobOutput state events. */ constructor() { diff --git a/lib/services/mediaServicesManagement/lib/models/jobInputClip.js b/lib/services/mediaServicesManagement/lib/models/jobInputClip.js index 467f497cef..d2928b43bb 100644 --- a/lib/services/mediaServicesManagement/lib/models/jobInputClip.js +++ b/lib/services/mediaServicesManagement/lib/models/jobInputClip.js @@ -21,6 +21,7 @@ class JobInputClip extends models['JobInput'] { /** * Create a JobInputClip. * @property {array} [files] List of files. Required for JobInputHttp. + * Maximum of 4000 characters each. * @property {string} [label] 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' diff --git a/lib/services/mediaServicesManagement/lib/models/jobInputHttp.js b/lib/services/mediaServicesManagement/lib/models/jobInputHttp.js index d07b2b85ac..5bbf777e89 100644 --- a/lib/services/mediaServicesManagement/lib/models/jobInputHttp.js +++ b/lib/services/mediaServicesManagement/lib/models/jobInputHttp.js @@ -21,8 +21,9 @@ class JobInputHttp extends models['JobInputClip'] { /** * Create a JobInputHttp. * @property {string} [baseUri] 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. + * 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. */ constructor() { super(); diff --git a/lib/services/mediaServicesManagement/lib/models/jpgFormat.js b/lib/services/mediaServicesManagement/lib/models/jpgFormat.js index 5068ba246c..d193001c6e 100644 --- a/lib/services/mediaServicesManagement/lib/models/jpgFormat.js +++ b/lib/services/mediaServicesManagement/lib/models/jpgFormat.js @@ -45,7 +45,7 @@ class JpgFormat extends models['ImageFormat'] { className: 'JpgFormat', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/jpgImage.js b/lib/services/mediaServicesManagement/lib/models/jpgImage.js index 5b8ae5f283..76632d61ab 100644 --- a/lib/services/mediaServicesManagement/lib/models/jpgImage.js +++ b/lib/services/mediaServicesManagement/lib/models/jpgImage.js @@ -77,7 +77,7 @@ class JpgImage extends models['Image'] { } }, start: { - required: false, + required: true, serializedName: 'start', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/mp4Format.js b/lib/services/mediaServicesManagement/lib/models/mp4Format.js index 2b091eaedd..7d1b288cca 100644 --- a/lib/services/mediaServicesManagement/lib/models/mp4Format.js +++ b/lib/services/mediaServicesManagement/lib/models/mp4Format.js @@ -45,7 +45,7 @@ class Mp4Format extends models['MultiBitrateFormat'] { className: 'Mp4Format', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/multiBitrateFormat.js b/lib/services/mediaServicesManagement/lib/models/multiBitrateFormat.js index c5b9d99366..68a8af4012 100644 --- a/lib/services/mediaServicesManagement/lib/models/multiBitrateFormat.js +++ b/lib/services/mediaServicesManagement/lib/models/multiBitrateFormat.js @@ -52,7 +52,7 @@ class MultiBitrateFormat extends models['Format'] { className: 'MultiBitrateFormat', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/outputFile.js b/lib/services/mediaServicesManagement/lib/models/outputFile.js index 065a108cc2..52e123e642 100644 --- a/lib/services/mediaServicesManagement/lib/models/outputFile.js +++ b/lib/services/mediaServicesManagement/lib/models/outputFile.js @@ -17,12 +17,12 @@ class OutputFile { /** * Create a OutputFile. - * @property {array} [labels] 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. + * @property {array} labels 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. */ constructor() { } @@ -42,7 +42,7 @@ class OutputFile { className: 'OutputFile', modelProperties: { labels: { - required: false, + required: true, serializedName: 'labels', type: { name: 'Sequence', diff --git a/lib/services/mediaServicesManagement/lib/models/overlay.js b/lib/services/mediaServicesManagement/lib/models/overlay.js index b3ed2d9565..bb8bbee04b 100644 --- a/lib/services/mediaServicesManagement/lib/models/overlay.js +++ b/lib/services/mediaServicesManagement/lib/models/overlay.js @@ -17,7 +17,7 @@ class Overlay { /** * Create a Overlay. - * @property {string} [inputLabel] The label of the job input which is to be + * @property {string} inputLabel 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 @@ -68,7 +68,7 @@ class Overlay { className: 'Overlay', modelProperties: { inputLabel: { - required: false, + required: true, serializedName: 'inputLabel', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/pngFormat.js b/lib/services/mediaServicesManagement/lib/models/pngFormat.js index f308ef10c4..7f1a99598f 100644 --- a/lib/services/mediaServicesManagement/lib/models/pngFormat.js +++ b/lib/services/mediaServicesManagement/lib/models/pngFormat.js @@ -45,7 +45,7 @@ class PngFormat extends models['ImageFormat'] { className: 'PngFormat', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/pngImage.js b/lib/services/mediaServicesManagement/lib/models/pngImage.js index eec4ee91e2..d9b8296d9f 100644 --- a/lib/services/mediaServicesManagement/lib/models/pngImage.js +++ b/lib/services/mediaServicesManagement/lib/models/pngImage.js @@ -77,7 +77,7 @@ class PngImage extends models['Image'] { } }, start: { - required: false, + required: true, serializedName: 'start', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/standardEncoderPreset.js b/lib/services/mediaServicesManagement/lib/models/standardEncoderPreset.js index d2e2fcfb30..dc8f8175b9 100644 --- a/lib/services/mediaServicesManagement/lib/models/standardEncoderPreset.js +++ b/lib/services/mediaServicesManagement/lib/models/standardEncoderPreset.js @@ -49,9 +49,9 @@ class StandardEncoderPreset extends models['Preset'] { * to the size of the video (For example, 50%). * @property {array} [filters.overlays] The properties of overlays to be * applied to the input video. These could be audio, image or video overlays. - * @property {array} [codecs] The list of codecs to be used when encoding the + * @property {array} codecs The list of codecs to be used when encoding the * input video. - * @property {array} [formats] The list of outputs to be produced by the + * @property {array} formats The list of outputs to be produced by the * encoder. */ constructor() { @@ -94,7 +94,7 @@ class StandardEncoderPreset extends models['Preset'] { } }, codecs: { - required: false, + required: true, serializedName: 'codecs', type: { name: 'Sequence', @@ -114,7 +114,7 @@ class StandardEncoderPreset extends models['Preset'] { } }, formats: { - required: false, + required: true, serializedName: 'formats', type: { name: 'Sequence', diff --git a/lib/services/mediaServicesManagement/lib/models/streamingLocator.js b/lib/services/mediaServicesManagement/lib/models/streamingLocator.js index 2b3ceefa50..58ad146641 100644 --- a/lib/services/mediaServicesManagement/lib/models/streamingLocator.js +++ b/lib/services/mediaServicesManagement/lib/models/streamingLocator.js @@ -39,6 +39,8 @@ class StreamingLocator extends models['ProxyResource'] { * Locator. * @property {string} [alternativeMediaId] Alternative Media ID of this * Streaming Locator + * @property {array} [filters] A list of asset or account filters which apply + * to this streaming locator */ constructor() { super(); @@ -154,6 +156,20 @@ class StreamingLocator extends models['ProxyResource'] { type: { name: 'String' } + }, + filters: { + required: false, + serializedName: 'properties.filters', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } } } } diff --git a/lib/services/mediaServicesManagement/lib/models/streamingPolicy.js b/lib/services/mediaServicesManagement/lib/models/streamingPolicy.js index d71de06596..ec6aeb1b5d 100644 --- a/lib/services/mediaServicesManagement/lib/models/streamingPolicy.js +++ b/lib/services/mediaServicesManagement/lib/models/streamingPolicy.js @@ -49,8 +49,13 @@ class StreamingPolicy extends models['ProxyResource'] { * @property {array} [envelopeEncryption.contentKeys.keyToTrackMappings] * Representing tracks needs separate content key * @property {string} [envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * 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. * @property {object} [commonEncryptionCenc] Configuration of * CommonEncryptionCenc * @property {object} [commonEncryptionCenc.enabledProtocols] Representing @@ -84,8 +89,13 @@ class StreamingPolicy extends models['ProxyResource'] { * configurations * @property {string} * [commonEncryptionCenc.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * @property {string} * [commonEncryptionCenc.drm.playReady.playReadyCustomAttributes] Custom * attributes for PlayReady @@ -93,8 +103,13 @@ class StreamingPolicy extends models['ProxyResource'] { * configurations * @property {string} * [commonEncryptionCenc.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * @property {object} [commonEncryptionCbcs] Configuration of * CommonEncryptionCbcs * @property {object} [commonEncryptionCbcs.enabledProtocols] Representing @@ -128,8 +143,13 @@ class StreamingPolicy extends models['ProxyResource'] { * configurations * @property {string} * [commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * @property {boolean} * [commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense] All license to * be persistent or not @@ -137,8 +157,13 @@ class StreamingPolicy extends models['ProxyResource'] { * configurations * @property {string} * [commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * @property {string} * [commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] Custom * attributes for PlayReady @@ -146,8 +171,13 @@ class StreamingPolicy extends models['ProxyResource'] { * configurations * @property {string} * [commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * @property {object} [noEncryption] Configurations of NoEncryption * @property {object} [noEncryption.enabledProtocols] Representing supported * protocols diff --git a/lib/services/mediaServicesManagement/lib/models/streamingPolicyFairPlayConfiguration.js b/lib/services/mediaServicesManagement/lib/models/streamingPolicyFairPlayConfiguration.js index 58af3d1f15..f72473930d 100644 --- a/lib/services/mediaServicesManagement/lib/models/streamingPolicyFairPlayConfiguration.js +++ b/lib/services/mediaServicesManagement/lib/models/streamingPolicyFairPlayConfiguration.js @@ -17,9 +17,14 @@ class StreamingPolicyFairPlayConfiguration { /** * Create a StreamingPolicyFairPlayConfiguration. - * @property {string} [customLicenseAcquisitionUrlTemplate] The template for - * a customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @property {string} [customLicenseAcquisitionUrlTemplate] 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. * @property {boolean} allowPersistentLicense All license to be persistent or * not */ diff --git a/lib/services/mediaServicesManagement/lib/models/streamingPolicyPlayReadyConfiguration.js b/lib/services/mediaServicesManagement/lib/models/streamingPolicyPlayReadyConfiguration.js index a498af5636..beffd2c5bf 100644 --- a/lib/services/mediaServicesManagement/lib/models/streamingPolicyPlayReadyConfiguration.js +++ b/lib/services/mediaServicesManagement/lib/models/streamingPolicyPlayReadyConfiguration.js @@ -17,9 +17,14 @@ class StreamingPolicyPlayReadyConfiguration { /** * Create a StreamingPolicyPlayReadyConfiguration. - * @property {string} [customLicenseAcquisitionUrlTemplate] The template for - * a customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @property {string} [customLicenseAcquisitionUrlTemplate] 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. * @property {string} [playReadyCustomAttributes] Custom attributes for * PlayReady */ diff --git a/lib/services/mediaServicesManagement/lib/models/streamingPolicyWidevineConfiguration.js b/lib/services/mediaServicesManagement/lib/models/streamingPolicyWidevineConfiguration.js index efda190227..ce7c6b7e72 100644 --- a/lib/services/mediaServicesManagement/lib/models/streamingPolicyWidevineConfiguration.js +++ b/lib/services/mediaServicesManagement/lib/models/streamingPolicyWidevineConfiguration.js @@ -17,9 +17,14 @@ class StreamingPolicyWidevineConfiguration { /** * Create a StreamingPolicyWidevineConfiguration. - * @property {string} [customLicenseAcquisitionUrlTemplate] The template for - * a customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @property {string} [customLicenseAcquisitionUrlTemplate] 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. */ constructor() { } diff --git a/lib/services/mediaServicesManagement/lib/models/transportStreamFormat.js b/lib/services/mediaServicesManagement/lib/models/transportStreamFormat.js index e9aa268752..8e543039ed 100644 --- a/lib/services/mediaServicesManagement/lib/models/transportStreamFormat.js +++ b/lib/services/mediaServicesManagement/lib/models/transportStreamFormat.js @@ -46,7 +46,7 @@ class TransportStreamFormat extends models['MultiBitrateFormat'] { className: 'TransportStreamFormat', modelProperties: { filenamePattern: { - required: false, + required: true, serializedName: 'filenamePattern', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/models/videoLayer.js b/lib/services/mediaServicesManagement/lib/models/videoLayer.js index ff87247fbd..d5df8d6ae1 100644 --- a/lib/services/mediaServicesManagement/lib/models/videoLayer.js +++ b/lib/services/mediaServicesManagement/lib/models/videoLayer.js @@ -21,9 +21,9 @@ const models = require('./index'); class VideoLayer extends models['Layer'] { /** * Create a VideoLayer. - * @property {number} [bitrate] The average bitrate in bits per second at - * which to encode the input video when generating this layer. This is a - * required field. + * @property {number} bitrate The average bitrate in bits per second at which + * to encode the input video when generating this layer. This is a required + * field. * @property {number} [maxBitrate] 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. @@ -96,7 +96,7 @@ class VideoLayer extends models['Layer'] { } }, bitrate: { - required: false, + required: true, serializedName: 'bitrate', type: { name: 'Number' diff --git a/lib/services/mediaServicesManagement/lib/models/videoOverlay.js b/lib/services/mediaServicesManagement/lib/models/videoOverlay.js index cf9903cbc3..b43ab930a0 100644 --- a/lib/services/mediaServicesManagement/lib/models/videoOverlay.js +++ b/lib/services/mediaServicesManagement/lib/models/videoOverlay.js @@ -75,7 +75,7 @@ class VideoOverlay extends models['Overlay'] { className: 'VideoOverlay', modelProperties: { inputLabel: { - required: false, + required: true, serializedName: 'inputLabel', type: { name: 'String' diff --git a/lib/services/mediaServicesManagement/lib/operations/index.d.ts b/lib/services/mediaServicesManagement/lib/operations/index.d.ts index c5bc65fec4..d0b25fd1dc 100644 --- a/lib/services/mediaServicesManagement/lib/operations/index.d.ts +++ b/lib/services/mediaServicesManagement/lib/operations/index.d.ts @@ -3857,8 +3857,8 @@ export interface Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -3903,8 +3903,8 @@ export interface Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -4042,8 +4042,8 @@ export interface Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -4090,8 +4090,8 @@ export interface Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -4451,9 +4451,14 @@ export interface StreamingPolicies { * specific tracks * * @param {string} - * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] 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. * * @param {object} [parameters.commonEncryptionCenc] Configuration of * CommonEncryptionCenc @@ -4513,8 +4518,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {boolean} * parameters.commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense All @@ -4525,8 +4535,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] @@ -4537,8 +4552,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {object} [parameters.noEncryption] Configurations of NoEncryption * @@ -4601,9 +4621,14 @@ export interface StreamingPolicies { * specific tracks * * @param {string} - * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] 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. * * @param {object} [parameters.commonEncryptionCenc] Configuration of * CommonEncryptionCenc @@ -4663,8 +4688,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {boolean} * parameters.commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense All @@ -4675,8 +4705,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] @@ -4687,8 +4722,13 @@ export interface StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {object} [parameters.noEncryption] Configurations of NoEncryption * @@ -5072,6 +5112,9 @@ export interface StreamingLocators { * @param {string} [parameters.alternativeMediaId] Alternative Media ID of this * Streaming Locator * + * @param {array} [parameters.filters] A list of asset or account filters which + * apply to this streaming locator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5126,6 +5169,9 @@ export interface StreamingLocators { * @param {string} [parameters.alternativeMediaId] Alternative Media ID of this * Streaming Locator * + * @param {array} [parameters.filters] A list of asset or account filters which + * apply to this streaming locator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/mediaServicesManagement/lib/operations/jobs.js b/lib/services/mediaServicesManagement/lib/operations/jobs.js index 4e55beda62..4549951477 100644 --- a/lib/services/mediaServicesManagement/lib/operations/jobs.js +++ b/lib/services/mediaServicesManagement/lib/operations/jobs.js @@ -379,8 +379,8 @@ function _get(resourceGroupName, accountName, transformName, jobName, options, c * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -721,8 +721,8 @@ function _deleteMethod(resourceGroupName, accountName, transformName, jobName, o * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -1414,8 +1414,8 @@ class Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -1472,8 +1472,8 @@ class Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -1653,8 +1653,8 @@ class Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * @@ -1713,8 +1713,8 @@ class Jobs { * not set, the default is normal. Possible values include: 'Low', 'Normal', * 'High' * - * @param {object} [parameters.correlationData] Customer provided correlation - * data that will be returned in Job and JobOutput state events. + * @param {object} [parameters.correlationData] Customer provided key, value + * pairs that will be returned in Job and JobOutput state events. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/mediaServicesManagement/lib/operations/streamingLocators.js b/lib/services/mediaServicesManagement/lib/operations/streamingLocators.js index 2845589205..0f861c5052 100644 --- a/lib/services/mediaServicesManagement/lib/operations/streamingLocators.js +++ b/lib/services/mediaServicesManagement/lib/operations/streamingLocators.js @@ -390,6 +390,9 @@ function _get(resourceGroupName, accountName, streamingLocatorName, options, cal * @param {string} [parameters.alternativeMediaId] Alternative Media ID of this * Streaming Locator * + * @param {array} [parameters.filters] A list of asset or account filters which + * apply to this streaming locator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1394,6 +1397,9 @@ class StreamingLocators { * @param {string} [parameters.alternativeMediaId] Alternative Media ID of this * Streaming Locator * + * @param {array} [parameters.filters] A list of asset or account filters which + * apply to this streaming locator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1460,6 +1466,9 @@ class StreamingLocators { * @param {string} [parameters.alternativeMediaId] Alternative Media ID of this * Streaming Locator * + * @param {array} [parameters.filters] A list of asset or account filters which + * apply to this streaming locator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/mediaServicesManagement/lib/operations/streamingPolicies.js b/lib/services/mediaServicesManagement/lib/operations/streamingPolicies.js index e8d0d6c868..29928994b0 100644 --- a/lib/services/mediaServicesManagement/lib/operations/streamingPolicies.js +++ b/lib/services/mediaServicesManagement/lib/operations/streamingPolicies.js @@ -380,9 +380,14 @@ function _get(resourceGroupName, accountName, streamingPolicyName, options, call * specific tracks * * @param {string} - * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] 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. * * @param {object} [parameters.commonEncryptionCenc] Configuration of * CommonEncryptionCenc @@ -442,8 +447,13 @@ function _get(resourceGroupName, accountName, streamingPolicyName, options, call * * @param {string} * [parameters.commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {boolean} * parameters.commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense All @@ -454,8 +464,13 @@ function _get(resourceGroupName, accountName, streamingPolicyName, options, call * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] @@ -466,8 +481,13 @@ function _get(resourceGroupName, accountName, streamingPolicyName, options, call * * @param {string} * [parameters.commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {object} [parameters.noEncryption] Configurations of NoEncryption * @@ -1167,9 +1187,14 @@ class StreamingPolicies { * specific tracks * * @param {string} - * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] 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. * * @param {object} [parameters.commonEncryptionCenc] Configuration of * CommonEncryptionCenc @@ -1229,8 +1254,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {boolean} * parameters.commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense All @@ -1241,8 +1271,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] @@ -1253,8 +1288,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {object} [parameters.noEncryption] Configurations of NoEncryption * @@ -1329,9 +1369,14 @@ class StreamingPolicies { * specific tracks * * @param {string} - * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * [parameters.envelopeEncryption.customKeyAcquisitionUrlTemplate] 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. * * @param {object} [parameters.commonEncryptionCenc] Configuration of * CommonEncryptionCenc @@ -1391,8 +1436,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.fairPlay.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {boolean} * parameters.commonEncryptionCbcs.drm.fairPlay.allowPersistentLicense All @@ -1403,8 +1453,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {string} * [parameters.commonEncryptionCbcs.drm.playReady.playReadyCustomAttributes] @@ -1415,8 +1470,13 @@ class StreamingPolicies { * * @param {string} * [parameters.commonEncryptionCbcs.drm.widevine.customLicenseAcquisitionUrlTemplate] - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * 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. * * @param {object} [parameters.noEncryption] Configurations of NoEncryption *