diff --git a/sdk/mediaservices/arm-mediaservices/package.json b/sdk/mediaservices/arm-mediaservices/package.json index 1c721980ed13..c56975395de0 100644 --- a/sdk/mediaservices/arm-mediaservices/package.json +++ b/sdk/mediaservices/arm-mediaservices/package.json @@ -5,7 +5,7 @@ "version": "6.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.6.0", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -26,7 +26,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/mediaservices/arm-mediaservices", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" diff --git a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts index 6dbe0ae0f69e..5881da916a0c 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AccountFilterCollection, AkamaiAccessControl, @@ -23,6 +24,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts index cf252d94da64..acbab081fd4f 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -23,6 +24,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts index 0666212b559c..500405edcb1e 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -26,6 +27,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts index 91bac7b94fbb..19f169767d73 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/index.ts b/sdk/mediaservices/arm-mediaservices/src/models/index.ts index fe11944c0e48..7d0ac41687e6 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/index.ts @@ -36,7 +36,7 @@ export interface PresentationTimeRange { */ timescale?: number; /** - * The indicator of forcing exsiting of end time stamp. + * The indicator of forcing existing of end time stamp. */ forceEndTimestamp?: boolean; } @@ -51,7 +51,7 @@ export interface FilterTrackPropertyCondition { */ property: FilterTrackPropertyType; /** - * The track proprty value. + * The track property value. */ value: string; /** @@ -2102,9 +2102,14 @@ export interface VideoAnalyzerPreset { */ audioLanguage?: string; /** - * The type of insights to be extracted. If not set then based on the content the type will - * selected. If the content is audio only then only audio insights are extracted and if it is - * video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' + * 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. Possible values include: 'AudioInsightsOnly', + * 'VideoInsightsOnly', 'AllInsights' */ insightsToExtract?: InsightsType; } @@ -2262,6 +2267,22 @@ export interface JobInput { odatatype: "JobInput"; } +/** + * Contains the possible cases for ClipTime. + */ +export type ClipTimeUnion = ClipTime | AbsoluteClipTime; + +/** + * Base class for specifying a clip time. Use sub classes of this class to specify the time + * position in the media. + */ +export interface ClipTime { + /** + * Polymorphic Discriminator + */ + odatatype: "ClipTime"; +} + /** * Contains the possible cases for JobInputClip. */ @@ -2279,6 +2300,16 @@ export interface JobInputClip { * List of files. Required for JobInputHttp. Maximum of 4000 characters each. */ files?: string[]; + /** + * Defines a point on the timeline of the input media at which processing will start. Defaults to + * the beginning of the input media. + */ + start?: ClipTimeUnion; + /** + * Defines a point on the timeline of the input media at which processing will end. Defaults to + * the end of the input media. + */ + end?: ClipTimeUnion; /** * 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 @@ -2289,6 +2320,23 @@ export interface JobInputClip { label?: string; } +/** + * 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. + */ +export interface AbsoluteClipTime { + /** + * Polymorphic Discriminator + */ + odatatype: "#Microsoft.Media.AbsoluteClipTime"; + /** + * The time position on the timeline of the input media. It is usually specified as an ISO8601 + * period. e.g PT30S for 30 seconds. + */ + time: string; +} + /** * Describes a list of inputs to a Job. */ @@ -2315,6 +2363,16 @@ export interface JobInputAsset { * List of files. Required for JobInputHttp. Maximum of 4000 characters each. */ files?: string[]; + /** + * Defines a point on the timeline of the input media at which processing will start. Defaults to + * the beginning of the input media. + */ + start?: ClipTimeUnion; + /** + * Defines a point on the timeline of the input media at which processing will end. Defaults to + * the end of the input media. + */ + end?: ClipTimeUnion; /** * 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 @@ -2341,6 +2399,16 @@ export interface JobInputHttp { * List of files. Required for JobInputHttp. Maximum of 4000 characters each. */ files?: string[]; + /** + * Defines a point on the timeline of the input media at which processing will start. Defaults to + * the beginning of the input media. + */ + start?: ClipTimeUnion; + /** + * Defines a point on the timeline of the input media at which processing will end. Defaults to + * the end of the input media. + */ + end?: ClipTimeUnion; /** * 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 @@ -3160,7 +3228,7 @@ export interface LiveEventPreview { export interface LiveEventEncoding { /** * The encoding type for Live Event. This value is specified at creation time and cannot be - * updated. Possible values include: 'None', 'Basic', 'Standard' + * updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p' */ encodingType?: LiveEventEncodingType; /** @@ -3395,7 +3463,7 @@ export interface AssetsListOptionalParams extends msRest.RequestOptionsBase { */ top?: number; /** - * Specifies the the key by which the result collection should be ordered. + * Specifies the key by which the result collection should be ordered. */ orderby?: string; } @@ -3415,7 +3483,7 @@ export interface ContentKeyPoliciesListOptionalParams extends msRest.RequestOpti */ top?: number; /** - * Specifies the the key by which the result collection should be ordered. + * Specifies the key by which the result collection should be ordered. */ orderby?: string; } @@ -3429,7 +3497,7 @@ export interface TransformsListOptionalParams extends msRest.RequestOptionsBase */ filter?: string; /** - * Specifies the the key by which the result collection should be ordered. + * Specifies the key by which the result collection should be ordered. */ orderby?: string; } @@ -3443,7 +3511,7 @@ export interface JobsListOptionalParams extends msRest.RequestOptionsBase { */ filter?: string; /** - * Specifies the the key by which the result collection should be ordered. + * Specifies the key by which the result collection should be ordered. */ orderby?: string; } @@ -4029,11 +4097,11 @@ export type LiveEventInputProtocol = 'FragmentedMP4' | 'RTMP'; /** * Defines values for LiveEventEncodingType. - * Possible values include: 'None', 'Basic', 'Standard' + * Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p' * @readonly * @enum {string} */ -export type LiveEventEncodingType = 'None' | 'Basic' | 'Standard'; +export type LiveEventEncodingType = 'None' | 'Basic' | 'Standard' | 'Premium1080p'; /** * Defines values for LiveEventResourceState. diff --git a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts index a10c40cb416e..4275d38d4230 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts index 8e92f6b07e3a..a295e22af2cb 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts index 72dd3f782365..2dd919620d64 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts index 79a1b00e398e..cfb48aa8c18c 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts @@ -2754,6 +2754,28 @@ export const JobInput: msRest.CompositeMapper = { } }; +export const ClipTime: msRest.CompositeMapper = { + serializedName: "ClipTime", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "@odata.type", + clientName: "odatatype" + }, + uberParent: "ClipTime", + className: "ClipTime", + modelProperties: { + odatatype: { + required: true, + serializedName: "@odata\\.type", + type: { + name: "String" + } + } + } + } +}; + export const JobInputClip: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.JobInputClip", type: { @@ -2774,6 +2796,20 @@ export const JobInputClip: msRest.CompositeMapper = { } } }, + start: { + serializedName: "start", + type: { + name: "Composite", + className: "ClipTime" + } + }, + end: { + serializedName: "end", + type: { + name: "Composite", + className: "ClipTime" + } + }, label: { serializedName: "label", type: { @@ -2784,6 +2820,26 @@ export const JobInputClip: msRest.CompositeMapper = { } }; +export const AbsoluteClipTime: msRest.CompositeMapper = { + serializedName: "#Microsoft.Media.AbsoluteClipTime", + type: { + name: "Composite", + polymorphicDiscriminator: ClipTime.type.polymorphicDiscriminator, + uberParent: "ClipTime", + className: "AbsoluteClipTime", + modelProperties: { + ...ClipTime.type.modelProperties, + time: { + required: true, + serializedName: "time", + type: { + name: "TimeSpan" + } + } + } + } +}; + export const JobInputs: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.JobInputs", type: { @@ -3886,12 +3942,7 @@ export const LiveOutput: msRest.CompositeMapper = { readOnly: true, serializedName: "properties.resourceState", type: { - name: "Enum", - allowedValues: [ - "Creating", - "Running", - "Deleting" - ] + name: "String" } } } @@ -3997,11 +4048,7 @@ export const LiveEventInput: msRest.CompositeMapper = { required: true, serializedName: "streamingProtocol", type: { - name: "Enum", - allowedValues: [ - "FragmentedMP4", - "RTMP" - ] + name: "String" } }, accessControl: { @@ -4112,12 +4159,7 @@ export const LiveEventEncoding: msRest.CompositeMapper = { encodingType: { serializedName: "encodingType", type: { - name: "Enum", - allowedValues: [ - "None", - "Basic", - "Standard" - ] + name: "String" } }, presetName: { @@ -4214,14 +4256,7 @@ export const LiveEvent: msRest.CompositeMapper = { readOnly: true, serializedName: "properties.resourceState", type: { - name: "Enum", - allowedValues: [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting" - ] + name: "String" } }, crossSiteAccessPolicies: { @@ -4243,11 +4278,7 @@ export const LiveEvent: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Default", - "LowLatency" - ] + name: "String" } } } @@ -4446,15 +4477,7 @@ export const StreamingEndpoint: msRest.CompositeMapper = { readOnly: true, serializedName: "properties.resourceState", type: { - name: "Enum", - allowedValues: [ - "Stopped", - "Starting", - "Running", - "Stopping", - "Deleting", - "Scaling" - ] + name: "String" } }, crossSiteAccessPolicies: { @@ -4949,7 +4972,9 @@ export const discriminators = { 'Format.#Microsoft.Media.TransportStreamFormat' : TransportStreamFormat, 'Overlay.#Microsoft.Media.VideoOverlay' : VideoOverlay, 'JobInput' : JobInput, + 'ClipTime' : ClipTime, 'JobInput.#Microsoft.Media.JobInputClip' : JobInputClip, + 'ClipTime.#Microsoft.Media.AbsoluteClipTime' : AbsoluteClipTime, 'JobInput.#Microsoft.Media.JobInputs' : JobInputs, 'JobInput.#Microsoft.Media.JobInputAsset' : JobInputAsset, 'JobInput.#Microsoft.Media.JobInputHttp' : JobInputHttp, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts index 3dff25cf7c5a..a97801c7cb3e 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts index 7d14e6b24990..cb11ab9cd7ad 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts index 8a805bdf7265..78623db0db24 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts index 541350874fbf..78f3bc5ef507 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts index af75f9c098ec..304797f9003b 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts @@ -9,6 +9,7 @@ export { discriminators, AacAudio, + AbsoluteClipTime, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -22,6 +23,7 @@ export { BuiltInStandardEncoderPreset, CbcsDrmConfiguration, CencDrmConfiguration, + ClipTime, Codec, CommonEncryptionCbcs, CommonEncryptionCenc,