Skip to content

Commit 4015ceb

Browse files
author
SDKAuto
committed
CodeGen from PR 21160 in Azure/azure-rest-api-specs
Merge 2720bfbf4025b0e3505ac562570b41210fc18527 into c0f92082a788895368a738a9200e24971157d7ca
1 parent 0d68c7c commit 4015ceb

27 files changed

+651
-302
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/mediaservices/arm-mediaservices/CHANGELOG.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
# Release History
2+
3+
## 14.0.0 (2023-01-12)
4+
5+
**Features**
26

3-
## 13.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added Interface DDAudio
8+
- Added Interface Fade
9+
- Interface Filters has a new optional parameter fadeIn
10+
- Interface Filters has a new optional parameter fadeOut
11+
- Interface StandardEncoderPreset has a new optional parameter experimentalOptions
12+
- Enum KnownEncoderNamedPreset has a new value DDGoodQualityAudio
13+
- Enum KnownJobErrorCategory has a new value Account
14+
- Enum KnownJobErrorCode has a new value IdentityUnsupported
15+
- Added function getContinuationToken
1016

11-
### Other Changes
17+
**Breaking Changes**
1218

19+
- Interface AssetsListNextOptionalParams no longer has parameter filter
20+
- Interface AssetsListNextOptionalParams no longer has parameter orderby
21+
- Interface AssetsListNextOptionalParams no longer has parameter top
22+
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter filter
23+
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter orderby
24+
- Interface ContentKeyPoliciesListNextOptionalParams no longer has parameter top
25+
- Interface JobsListNextOptionalParams no longer has parameter filter
26+
- Interface JobsListNextOptionalParams no longer has parameter orderby
27+
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter filter
28+
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter orderby
29+
- Interface StreamingLocatorsListNextOptionalParams no longer has parameter top
30+
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter filter
31+
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter orderby
32+
- Interface StreamingPoliciesListNextOptionalParams no longer has parameter top
33+
- Interface TransformsListNextOptionalParams no longer has parameter filter
34+
- Interface TransformsListNextOptionalParams no longer has parameter orderby
35+
- 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"
36+
- 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"
37+
38+
1339
## 13.0.0 (2022-09-06)
1440

1541
**Features**

sdk/mediaservices/arm-mediaservices/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Microsoft
3+
Copyright (c) 2023 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "5caa1523d49057d1a011bf0bdd1857dca7f9ab6b",
2+
"commit": "9107a590b9d26d770098c9d6b351f2940adfaad9",
33
"readme": "specification/mediaservices/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].1.20220727.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
7+
"use": "@autorest/[email protected].5"
88
}

sdk/mediaservices/arm-mediaservices/package.json

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AzureMediaServices.",
6-
"version": "13.0.1",
6+
"version": "14.0.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.2.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.5.0",
14+
"@azure/core-client": "^1.6.1",
1515
"@azure/core-auth": "^1.3.0",
1616
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
@@ -36,7 +36,7 @@
3636
"mkdirp": "^1.0.4",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
39-
"typescript": "~4.6.0",
39+
"typescript": "~4.8.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
@@ -46,8 +46,8 @@
4646
"@types/chai": "^4.2.8",
4747
"chai": "^4.2.0",
4848
"cross-env": "^7.0.2",
49-
"@azure/dev-tool": "^1.0.0",
50-
"@azure/arm-storage": "^17.2.1"
49+
"@types/node": "^14.0.0",
50+
"@azure/dev-tool": "^1.0.0"
5151
},
5252
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mediaservices/arm-mediaservices",
5353
"repository": {
@@ -110,13 +110,5 @@
110110
}
111111
]
112112
},
113-
"autoPublish": true,
114-
"//sampleConfiguration": {
115-
"productName": "",
116-
"productSlugs": [
117-
"azure"
118-
],
119-
"disableDocsMs": true,
120-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-mediaservices?view=azure-node-preview"
121-
}
122-
}
113+
"autoPublish": true
114+
}

sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ export type AssetsListContainerSasResponse = AssetContainerSas;
291291

292292
// @public
293293
export interface AssetsListNextOptionalParams extends coreClient.OperationOptions {
294-
filter?: string;
295-
orderby?: string;
296-
top?: number;
297294
}
298295

299296
// @public
@@ -376,7 +373,7 @@ export type AttributeFilter = string;
376373
interface Audio_2 extends Codec {
377374
bitrate?: number;
378375
channels?: number;
379-
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio";
376+
odataType: "#Microsoft.Media.Audio" | "#Microsoft.Media.AacAudio" | "#Microsoft.Media.DDAudio";
380377
samplingRate?: number;
381378
}
382379
export { Audio_2 as Audio }
@@ -424,7 +421,7 @@ export interface AudioTrackDescriptor extends TrackDescriptor {
424421
export type AudioTrackDescriptorUnion = AudioTrackDescriptor | SelectAudioTrackByAttribute | SelectAudioTrackById;
425422

426423
// @public (undocumented)
427-
export type AudioUnion = Audio_2 | AacAudio;
424+
export type AudioUnion = Audio_2 | AacAudio | DDAudio;
428425

429426
// @public (undocumented)
430427
export class AzureMediaServices extends coreClient.ServiceClient {
@@ -531,7 +528,7 @@ export type ClipTimeUnion = ClipTime | AbsoluteClipTime | UtcClipTime;
531528
// @public
532529
export interface Codec {
533530
label?: string;
534-
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";
531+
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";
535532
}
536533

537534
// @public (undocumented)
@@ -595,9 +592,6 @@ export type ContentKeyPoliciesGetResponse = ContentKeyPolicy;
595592

596593
// @public
597594
export interface ContentKeyPoliciesListNextOptionalParams extends coreClient.OperationOptions {
598-
filter?: string;
599-
orderby?: string;
600-
top?: number;
601595
}
602596

603597
// @public
@@ -860,6 +854,11 @@ export interface DashSettings {
860854
role?: string;
861855
}
862856

857+
// @public
858+
export interface DDAudio extends Audio_2 {
859+
odataType: "#Microsoft.Media.DDAudio";
860+
}
861+
863862
// @public
864863
export type DefaultAction = string;
865864

@@ -968,10 +967,19 @@ export interface FaceDetectorPreset extends Preset {
968967
// @public
969968
export type FaceRedactorMode = string;
970969

970+
// @public
971+
export interface Fade {
972+
duration: string;
973+
fadeColor: string;
974+
start?: string;
975+
}
976+
971977
// @public
972978
export interface Filters {
973979
crop?: Rectangle;
974980
deinterlace?: Deinterlace;
981+
fadeIn?: Fade;
982+
fadeOut?: Fade;
975983
overlays?: OverlayUnion[];
976984
rotation?: Rotation;
977985
}
@@ -1018,6 +1026,9 @@ export interface FromEachInputFile extends InputDefinition {
10181026
odataType: "#Microsoft.Media.FromEachInputFile";
10191027
}
10201028

1029+
// @public
1030+
export function getContinuationToken(page: unknown): string | undefined;
1031+
10211032
// @public
10221033
export type H264Complexity = string;
10231034

@@ -1291,8 +1302,6 @@ export type JobsGetResponse = Job;
12911302

12921303
// @public
12931304
export interface JobsListNextOptionalParams extends coreClient.OperationOptions {
1294-
filter?: string;
1295-
orderby?: string;
12961305
}
12971306

12981307
// @public
@@ -1504,6 +1513,7 @@ export enum KnownEncoderNamedPreset {
15041513
ContentAwareEncoding = "ContentAwareEncoding",
15051514
ContentAwareEncodingExperimental = "ContentAwareEncodingExperimental",
15061515
CopyAllBitrateNonInterleaved = "CopyAllBitrateNonInterleaved",
1516+
DDGoodQualityAudio = "DDGoodQualityAudio",
15071517
H264MultipleBitrate1080P = "H264MultipleBitrate1080p",
15081518
H264MultipleBitrate720P = "H264MultipleBitrate720p",
15091519
H264MultipleBitrateSD = "H264MultipleBitrateSD",
@@ -1607,6 +1617,7 @@ export enum KnownInterleaveOutput {
16071617

16081618
// @public
16091619
export enum KnownJobErrorCategory {
1620+
Account = "Account",
16101621
Configuration = "Configuration",
16111622
Content = "Content",
16121623
Download = "Download",
@@ -1621,6 +1632,7 @@ export enum KnownJobErrorCode {
16211632
ContentUnsupported = "ContentUnsupported",
16221633
DownloadNotAccessible = "DownloadNotAccessible",
16231634
DownloadTransientError = "DownloadTransientError",
1635+
IdentityUnsupported = "IdentityUnsupported",
16241636
ServiceError = "ServiceError",
16251637
ServiceTransientError = "ServiceTransientError",
16261638
UploadNotAccessible = "UploadNotAccessible",
@@ -2723,6 +2735,9 @@ export interface ServiceSpecification {
27232735
// @public
27242736
export interface StandardEncoderPreset extends Preset {
27252737
codecs: CodecUnion[];
2738+
experimentalOptions?: {
2739+
[propertyName: string]: string;
2740+
};
27262741
filters?: Filters;
27272742
formats: FormatUnion[];
27282743
odataType: "#Microsoft.Media.StandardEncoderPreset";
@@ -2973,9 +2988,6 @@ export type StreamingLocatorsListContentKeysResponse = ListContentKeysResponse;
29732988

29742989
// @public
29752990
export interface StreamingLocatorsListNextOptionalParams extends coreClient.OperationOptions {
2976-
filter?: string;
2977-
orderby?: string;
2978-
top?: number;
29792991
}
29802992

29812993
// @public
@@ -3033,9 +3045,6 @@ export type StreamingPoliciesGetResponse = StreamingPolicy;
30333045

30343046
// @public
30353047
export interface StreamingPoliciesListNextOptionalParams extends coreClient.OperationOptions {
3036-
filter?: string;
3037-
orderby?: string;
3038-
top?: number;
30393048
}
30403049

30413050
// @public
@@ -3321,8 +3330,6 @@ export type TransformsGetResponse = Transform;
33213330

33223331
// @public
33233332
export interface TransformsListNextOptionalParams extends coreClient.OperationOptions {
3324-
filter?: string;
3325-
orderby?: string;
33263333
}
33273334

33283335
// @public

sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,19 @@ export class AzureMediaServices extends coreClient.ServiceClient {
8888
credential: credentials
8989
};
9090

91-
const packageDetails = `azsdk-js-arm-mediaservices/13.0.1`;
91+
const packageDetails = `azsdk-js-arm-mediaservices/14.0.0`;
9292
const userAgentPrefix =
9393
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
9494
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
9595
: `${packageDetails}`;
9696

97-
if (!options.credentialScopes) {
98-
options.credentialScopes = ["https://management.azure.com/.default"];
99-
}
10097
const optionsWithDefaults = {
10198
...defaults,
10299
...options,
103100
userAgentOptions: {
104101
userAgentPrefix
105102
},
106-
baseUri:
103+
endpoint:
107104
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
108105
};
109106
super(optionsWithDefaults);
@@ -129,7 +126,9 @@ export class AzureMediaServices extends coreClient.ServiceClient {
129126
this.pipeline.addPolicy(
130127
coreRestPipeline.bearerTokenAuthenticationPolicy({
131128
credential: credentials,
132-
scopes: `${optionsWithDefaults.credentialScopes}`,
129+
scopes:
130+
optionsWithDefaults.credentialScopes ??
131+
`${optionsWithDefaults.endpoint}/.default`,
133132
challengeCallbacks: {
134133
authorizeRequestOnChallenge:
135134
coreClient.authorizeRequestOnClaimChallenge

sdk/mediaservices/arm-mediaservices/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
/// <reference lib="esnext.asynciterable" />
10+
export { getContinuationToken } from "./pagingHelper";
1011
export * from "./models";
1112
export { AzureMediaServices } from "./azureMediaServices";
1213
export * from "./operationsInterfaces";

0 commit comments

Comments
 (0)