Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 34 additions & 8 deletions sdk/mediaservices/arm-mediaservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
# Release History

## 14.0.0 (2023-01-12)

**Features**

## 13.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface DDAudio
- Added Interface Fade
- Interface Filters has a new optional parameter fadeIn
- Interface Filters has a new optional parameter fadeOut
- Interface StandardEncoderPreset has a new optional parameter experimentalOptions
- Enum KnownEncoderNamedPreset has a new value DDGoodQualityAudio
- Enum KnownJobErrorCategory has a new value Account
- Enum KnownJobErrorCode has a new value IdentityUnsupported
- Added function getContinuationToken

### Other Changes
**Breaking Changes**

- Interface AssetsListNextOptionalParams no longer has parameter filter
- Interface AssetsListNextOptionalParams no longer has parameter orderby
- Interface AssetsListNextOptionalParams no longer has parameter top
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter filter
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter orderby
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter top
- Interface JobsListNextOptionalParams no longer has parameter filter
- Interface JobsListNextOptionalParams no longer has parameter orderby
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter filter
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter orderby
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter top
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter filter
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter orderby
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter top
- Interface TransformsListNextOptionalParams no longer has parameter filter
- Interface TransformsListNextOptionalParams no longer has parameter orderby
- Type of parameter odataType of interface Audio_2 is changed from "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" to "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.DDAudio"
- Type of parameter odataType of interface Codec is changed from "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.Video" | "#Microsoft.Media.H265Video" | "#Microsoft.Media.CopyVideo" | "#Microsoft.Media.Image" | "#Microsoft.Media.CopyAudio" | "#Microsoft.Media.H264Video" | "#Microsoft.Media.JpgImage" | "#Microsoft.Media.PngImage" to "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.DDAudio" | "#Microsoft.Media.Video" | "#Microsoft.Media.H265Video" | "#Microsoft.Media.CopyVideo" | "#Microsoft.Media.Image" | "#Microsoft.Media.CopyAudio" | "#Microsoft.Media.H264Video" | "#Microsoft.Media.JpgImage" | "#Microsoft.Media.PngImage"


## 13.0.0 (2022-09-06)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/mediaservices/arm-mediaservices/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 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
Expand Down
8 changes: 4 additions & 4 deletions sdk/mediaservices/arm-mediaservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "5caa1523d49057d1a011bf0bdd1857dca7f9ab6b",
"commit": "9107a590b9d26d770098c9d6b351f2940adfaad9",
"readme": "specification/mediaservices/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\mediaservices\\resource-manager\\readme.md --use=@autorest/[email protected].1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md --use=@autorest/[email protected].5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/[email protected].5"
}
22 changes: 7 additions & 15 deletions sdk/mediaservices/arm-mediaservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureMediaServices.",
"version": "13.0.1",
"version": "14.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.5.0",
"@azure/core-client": "^1.6.1",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -36,7 +36,7 @@
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.6.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
Expand All @@ -46,8 +46,8 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-storage": "^17.2.1"
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mediaservices/arm-mediaservices",
"repository": {
Expand Down Expand Up @@ -110,13 +110,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-mediaservices?view=azure-node-preview"
}
}
"autoPublish": true
}
45 changes: 26 additions & 19 deletions sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ export type AssetsListContainerSasResponse = AssetContainerSas;

// @public
export interface AssetsListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
top?: number;
}

// @public
Expand Down Expand Up @@ -376,7 +373,7 @@ export type AttributeFilter = string;
interface Audio_2 extends Codec {
bitrate?: number;
channels?: number;
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio";
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.DDAudio";
samplingRate?: number;
}
export { Audio_2 as Audio }
Expand Down Expand Up @@ -424,7 +421,7 @@ export interface AudioTrackDescriptor extends TrackDescriptor {
export type AudioTrackDescriptorUnion = AudioTrackDescriptor | SelectAudioTrackByAttribute | SelectAudioTrackById;

// @public (undocumented)
export type AudioUnion = Audio_2 | AacAudio;
export type AudioUnion = Audio_2 | AacAudio | DDAudio;

// @public (undocumented)
export class AzureMediaServices extends coreClient.ServiceClient {
Expand Down Expand Up @@ -531,7 +528,7 @@ export type ClipTimeUnion = ClipTime | AbsoluteClipTime | UtcClipTime;
// @public
export interface Codec {
label?: string;
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.Video" | "#Microsoft.Media.H265Video" | "#Microsoft.Media.CopyVideo" | "#Microsoft.Media.Image" | "#Microsoft.Media.CopyAudio" | "#Microsoft.Media.H264Video" | "#Microsoft.Media.JpgImage" | "#Microsoft.Media.PngImage";
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.DDAudio" | "#Microsoft.Media.Video" | "#Microsoft.Media.H265Video" | "#Microsoft.Media.CopyVideo" | "#Microsoft.Media.Image" | "#Microsoft.Media.CopyAudio" | "#Microsoft.Media.H264Video" | "#Microsoft.Media.JpgImage" | "#Microsoft.Media.PngImage";
}

// @public (undocumented)
Expand Down Expand Up @@ -595,9 +592,6 @@ export type ContentKeyPoliciesGetResponse = ContentKeyPolicy;

// @public
export interface ContentKeyPoliciesListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
top?: number;
}

// @public
Expand Down Expand Up @@ -860,6 +854,11 @@ export interface DashSettings {
role?: string;
}

// @public
export interface DDAudio extends Audio_2 {
odataType: "#Microsoft.Media.DDAudio";
}

// @public
export type DefaultAction = string;

Expand Down Expand Up @@ -968,10 +967,19 @@ export interface FaceDetectorPreset extends Preset {
// @public
export type FaceRedactorMode = string;

// @public
export interface Fade {
duration: string;
fadeColor: string;
start?: string;
}

// @public
export interface Filters {
crop?: Rectangle;
deinterlace?: Deinterlace;
fadeIn?: Fade;
fadeOut?: Fade;
overlays?: OverlayUnion[];
rotation?: Rotation;
}
Expand Down Expand Up @@ -1018,6 +1026,9 @@ export interface FromEachInputFile extends InputDefinition {
odataType: "#Microsoft.Media.FromEachInputFile";
}

// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export type H264Complexity = string;

Expand Down Expand Up @@ -1291,8 +1302,6 @@ export type JobsGetResponse = Job;

// @public
export interface JobsListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
}

// @public
Expand Down Expand Up @@ -1504,6 +1513,7 @@ export enum KnownEncoderNamedPreset {
ContentAwareEncoding = "ContentAwareEncoding",
ContentAwareEncodingExperimental = "ContentAwareEncodingExperimental",
CopyAllBitrateNonInterleaved = "CopyAllBitrateNonInterleaved",
DDGoodQualityAudio = "DDGoodQualityAudio",
H264MultipleBitrate1080P = "H264MultipleBitrate1080p",
H264MultipleBitrate720P = "H264MultipleBitrate720p",
H264MultipleBitrateSD = "H264MultipleBitrateSD",
Expand Down Expand Up @@ -1607,6 +1617,7 @@ export enum KnownInterleaveOutput {

// @public
export enum KnownJobErrorCategory {
Account = "Account",
Configuration = "Configuration",
Content = "Content",
Download = "Download",
Expand All @@ -1621,6 +1632,7 @@ export enum KnownJobErrorCode {
ContentUnsupported = "ContentUnsupported",
DownloadNotAccessible = "DownloadNotAccessible",
DownloadTransientError = "DownloadTransientError",
IdentityUnsupported = "IdentityUnsupported",
ServiceError = "ServiceError",
ServiceTransientError = "ServiceTransientError",
UploadNotAccessible = "UploadNotAccessible",
Expand Down Expand Up @@ -2723,6 +2735,9 @@ export interface ServiceSpecification {
// @public
export interface StandardEncoderPreset extends Preset {
codecs: CodecUnion[];
experimentalOptions?: {
[propertyName: string]: string;
};
filters?: Filters;
formats: FormatUnion[];
odataType: "#Microsoft.Media.StandardEncoderPreset";
Expand Down Expand Up @@ -2973,9 +2988,6 @@ export type StreamingLocatorsListContentKeysResponse = ListContentKeysResponse;

// @public
export interface StreamingLocatorsListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
top?: number;
}

// @public
Expand Down Expand Up @@ -3033,9 +3045,6 @@ export type StreamingPoliciesGetResponse = StreamingPolicy;

// @public
export interface StreamingPoliciesListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
top?: number;
}

// @public
Expand Down Expand Up @@ -3321,8 +3330,6 @@ export type TransformsGetResponse = Transform;

// @public
export interface TransformsListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
}

// @public
Expand Down
11 changes: 5 additions & 6 deletions sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,19 @@ export class AzureMediaServices extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-mediaservices/13.0.1`;
const packageDetails = `azsdk-js-arm-mediaservices/14.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
userAgentOptions: {
userAgentPrefix
},
baseUri:
endpoint:
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
};
super(optionsWithDefaults);
Expand All @@ -129,7 +126,9 @@ export class AzureMediaServices extends coreClient.ServiceClient {
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes: `${optionsWithDefaults.credentialScopes}`,
scopes:
optionsWithDefaults.credentialScopes ??
`${optionsWithDefaults.endpoint}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
Expand Down
1 change: 1 addition & 0 deletions sdk/mediaservices/arm-mediaservices/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { AzureMediaServices } from "./azureMediaServices";
export * from "./operationsInterfaces";
Loading