Skip to content

Commit 695c141

Browse files
author
SDKAuto
committed
CodeGen from PR 20489 in Azure/azure-rest-api-specs
Merge bb00fa54ec111721e1822dcad66bc3c85cf4b7b2 into 7c840caa77ac200f43636930d82fc31cf117241e
1 parent d9041a9 commit 695c141

26 files changed

+2080
-1422
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 1147 additions & 1283 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: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,52 @@
11
# Release History
2+
3+
## 13.0.0 (2022-09-01)
4+
5+
**Features**
26

3-
## 12.1.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added operation LiveEvents.asyncOperation
8+
- Added operation LiveEvents.operationLocation
9+
- Added operation LiveOutputs.asyncOperation
10+
- Added operation LiveOutputs.operationLocation
11+
- Added operation StreamingEndpoints.asyncOperation
12+
- Added operation StreamingEndpoints.operationLocation
13+
- Added Interface AsyncOperationResult
14+
- Added Interface ClearKeyEncryptionConfiguration
15+
- Added Interface DashSettings
16+
- Added Interface LiveEventsAsyncOperationOptionalParams
17+
- Added Interface LiveEventsOperationLocationOptionalParams
18+
- Added Interface LiveOutputsAsyncOperationOptionalParams
19+
- Added Interface LiveOutputsOperationLocationOptionalParams
20+
- Added Interface StreamingEndpointsAsyncOperationOptionalParams
21+
- Added Interface StreamingEndpointsOperationLocationOptionalParams
22+
- Added Type Alias AsyncOperationStatus
23+
- Added Type Alias LiveEventsAsyncOperationResponse
24+
- Added Type Alias LiveEventsOperationLocationResponse
25+
- Added Type Alias LiveOutputsAsyncOperationResponse
26+
- Added Type Alias LiveOutputsOperationLocationResponse
27+
- Added Type Alias SecurityLevel
28+
- Added Type Alias StreamingEndpointsAsyncOperationResponse
29+
- Added Type Alias StreamingEndpointsOperationLocationResponse
30+
- Interface AudioTrack has a new optional parameter bitRate
31+
- Interface AudioTrack has a new optional parameter dashSettings
32+
- Interface AudioTrack has a new optional parameter displayName
33+
- Interface AudioTrack has a new optional parameter fileName
34+
- Interface AudioTrack has a new optional parameter hlsSettings
35+
- Interface AudioTrack has a new optional parameter languageCode
36+
- Interface AudioTrack has a new optional parameter mpeg4TrackId
37+
- Interface CommonEncryptionCbcs has a new optional parameter clearKeyEncryptionConfiguration
38+
- Interface CommonEncryptionCenc has a new optional parameter clearKeyEncryptionConfiguration
39+
- Interface ContentKeyPolicyPlayReadyLicense has a new optional parameter securityLevel
40+
- Interface LiveOutput has a new optional parameter rewindWindowLength
41+
- Added Enum KnownAsyncOperationStatus
42+
- Added Enum KnownSecurityLevel
1043

11-
### Other Changes
44+
**Breaking Changes**
1245

46+
- Interface AzureMediaServicesOptionalParams no longer has parameter apiVersion
47+
- Class AzureMediaServices no longer has parameter apiVersion
48+
49+
1350
## 12.1.0 (2022-07-29)
1451

1552
**Features**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1dd79c416cdccde274113ec03b92b75069fad464",
2+
"commit": "ad59b7f8972ec69f2778bcff7f0531ca8c937907",
33
"readme": "specification/mediaservices/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --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/typescript@6.0.0-rc.1.20220721.1 --generate-sample=true",
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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
7-
"use": "@autorest/typescript@6.0.0-rc.1.20220721.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7+
"use": "@autorest/typescript@6.0.0-rc.1"
88
}

sdk/mediaservices/arm-mediaservices/package.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AzureMediaServices.",
6-
"version": "12.1.1",
6+
"version": "13.0.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -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.2.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
@@ -46,8 +46,7 @@
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+
"@azure/dev-tool": "^1.0.0"
5150
},
5251
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mediaservices/arm-mediaservices",
5352
"repository": {
@@ -110,13 +109,5 @@
110109
}
111110
]
112111
},
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-
}
112+
"autoPublish": true
113+
}

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

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,16 @@ export interface AssetTrackOperationStatus {
359359
status: string;
360360
}
361361

362+
// @public
363+
export interface AsyncOperationResult {
364+
error?: ErrorDetail;
365+
name?: string;
366+
status?: AsyncOperationStatus;
367+
}
368+
369+
// @public
370+
export type AsyncOperationStatus = string;
371+
362372
// @public
363373
export type AttributeFilter = string;
364374

@@ -394,6 +404,13 @@ export interface AudioOverlay extends Overlay {
394404

395405
// @public
396406
export interface AudioTrack extends TrackBase {
407+
readonly bitRate?: number;
408+
dashSettings?: DashSettings;
409+
displayName?: string;
410+
fileName?: string;
411+
hlsSettings?: HlsSettings;
412+
languageCode?: string;
413+
mpeg4TrackId?: number;
397414
odataType: "#Microsoft.Media.AudioTrack";
398415
}
399416

@@ -417,8 +434,6 @@ export class AzureMediaServices extends coreClient.ServiceClient {
417434
// (undocumented)
418435
accountFilters: AccountFilters;
419436
// (undocumented)
420-
apiVersion: string;
421-
// (undocumented)
422437
assetFilters: AssetFilters;
423438
// (undocumented)
424439
assets: Assets;
@@ -465,7 +480,6 @@ export class AzureMediaServices extends coreClient.ServiceClient {
465480
// @public
466481
export interface AzureMediaServicesOptionalParams extends coreClient.ServiceClientOptions {
467482
$host?: string;
468-
apiVersion?: string;
469483
endpoint?: string;
470484
}
471485

@@ -501,6 +515,11 @@ export interface CheckNameAvailabilityInput {
501515
type?: string;
502516
}
503517

518+
// @public
519+
export interface ClearKeyEncryptionConfiguration {
520+
customKeysAcquisitionUrlTemplate?: string;
521+
}
522+
504523
// @public
505524
export interface ClipTime {
506525
odataType: "#Microsoft.Media.AbsoluteClipTime" | "#Microsoft.Media.UtcClipTime";
@@ -520,6 +539,7 @@ export type CodecUnion = Codec | AudioUnion | VideoUnion | CopyVideo | CopyAudio
520539

521540
// @public
522541
export interface CommonEncryptionCbcs {
542+
clearKeyEncryptionConfiguration?: ClearKeyEncryptionConfiguration;
523543
clearTracks?: TrackSelection[];
524544
contentKeys?: StreamingPolicyContentKeys;
525545
drm?: CbcsDrmConfiguration;
@@ -528,6 +548,7 @@ export interface CommonEncryptionCbcs {
528548

529549
// @public
530550
export interface CommonEncryptionCenc {
551+
clearKeyEncryptionConfiguration?: ClearKeyEncryptionConfiguration;
531552
clearTracks?: TrackSelection[];
532553
contentKeys?: StreamingPolicyContentKeys;
533554
drm?: CencDrmConfiguration;
@@ -708,6 +729,7 @@ export interface ContentKeyPolicyPlayReadyLicense {
708729
playRight?: ContentKeyPolicyPlayReadyPlayRight;
709730
relativeBeginDate?: string;
710731
relativeExpirationDate?: string;
732+
securityLevel?: SecurityLevel;
711733
}
712734

713735
// @public
@@ -787,7 +809,7 @@ export interface ContentKeyPolicyTokenRestriction extends ContentKeyPolicyRestri
787809
issuer: string;
788810
odataType: "#Microsoft.Media.ContentKeyPolicyTokenRestriction";
789811
openIdConnectDiscoveryDocument?: string;
790-
primaryVerificationKey: ContentKeyPolicyRestrictionTokenKeyUnion;
812+
primaryVerificationKey: ContentKeyPolicyRestrictionTokenKeyUnion | null;
791813
requiredClaims?: ContentKeyPolicyTokenClaim[];
792814
restrictionTokenType: ContentKeyPolicyRestrictionTokenType;
793815
}
@@ -833,6 +855,11 @@ export interface CrossSiteAccessPolicies {
833855
crossDomainPolicy?: string;
834856
}
835857

858+
// @public
859+
export interface DashSettings {
860+
role?: string;
861+
}
862+
836863
// @public
837864
export type DefaultAction = string;
838865

@@ -1355,6 +1382,13 @@ export enum KnownAssetStorageEncryptionFormat {
13551382
None = "None"
13561383
}
13571384

1385+
// @public
1386+
export enum KnownAsyncOperationStatus {
1387+
Failed = "Failed",
1388+
InProgress = "InProgress",
1389+
Succeeded = "Succeeded"
1390+
}
1391+
13581392
// @public
13591393
export enum KnownAttributeFilter {
13601394
All = "All",
@@ -1708,6 +1742,14 @@ export enum KnownRotation {
17081742
Rotate90 = "Rotate90"
17091743
}
17101744

1745+
// @public
1746+
export enum KnownSecurityLevel {
1747+
SL150 = "SL150",
1748+
SL2000 = "SL2000",
1749+
SL3000 = "SL3000",
1750+
Unknown = "Unknown"
1751+
}
1752+
17111753
// @public
17121754
export enum KnownStorageAccountType {
17131755
Primary = "Primary",
@@ -1920,6 +1962,7 @@ export type LiveEventResourceState = string;
19201962

19211963
// @public
19221964
export interface LiveEvents {
1965+
asyncOperation(resourceGroupName: string, accountName: string, operationId: string, options?: LiveEventsAsyncOperationOptionalParams): Promise<LiveEventsAsyncOperationResponse>;
19231966
beginAllocate(resourceGroupName: string, accountName: string, liveEventName: string, options?: LiveEventsAllocateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
19241967
beginAllocateAndWait(resourceGroupName: string, accountName: string, liveEventName: string, options?: LiveEventsAllocateOptionalParams): Promise<void>;
19251968
beginCreate(resourceGroupName: string, accountName: string, liveEventName: string, parameters: LiveEvent, options?: LiveEventsCreateOptionalParams): Promise<PollerLike<PollOperationState<LiveEventsCreateResponse>, LiveEventsCreateResponse>>;
@@ -1936,6 +1979,7 @@ export interface LiveEvents {
19361979
beginUpdateAndWait(resourceGroupName: string, accountName: string, liveEventName: string, parameters: LiveEvent, options?: LiveEventsUpdateOptionalParams): Promise<LiveEventsUpdateResponse>;
19371980
get(resourceGroupName: string, accountName: string, liveEventName: string, options?: LiveEventsGetOptionalParams): Promise<LiveEventsGetResponse>;
19381981
list(resourceGroupName: string, accountName: string, options?: LiveEventsListOptionalParams): PagedAsyncIterableIterator<LiveEvent>;
1982+
operationLocation(resourceGroupName: string, accountName: string, liveEventName: string, operationId: string, options?: LiveEventsOperationLocationOptionalParams): Promise<LiveEventsOperationLocationResponse>;
19391983
}
19401984

19411985
// @public
@@ -1944,6 +1988,13 @@ export interface LiveEventsAllocateOptionalParams extends coreClient.OperationOp
19441988
updateIntervalInMs?: number;
19451989
}
19461990

1991+
// @public
1992+
export interface LiveEventsAsyncOperationOptionalParams extends coreClient.OperationOptions {
1993+
}
1994+
1995+
// @public
1996+
export type LiveEventsAsyncOperationResponse = AsyncOperationResult;
1997+
19471998
// @public
19481999
export interface LiveEventsCreateOptionalParams extends coreClient.OperationOptions {
19492000
autoStart?: boolean;
@@ -1981,6 +2032,13 @@ export interface LiveEventsListOptionalParams extends coreClient.OperationOption
19812032
// @public
19822033
export type LiveEventsListResponse = LiveEventListResult;
19832034

2035+
// @public
2036+
export interface LiveEventsOperationLocationOptionalParams extends coreClient.OperationOptions {
2037+
}
2038+
2039+
// @public
2040+
export type LiveEventsOperationLocationResponse = LiveEvent;
2041+
19842042
// @public
19852043
export interface LiveEventsResetOptionalParams extends coreClient.OperationOptions {
19862044
resumeFrom?: string;
@@ -2027,6 +2085,7 @@ export interface LiveOutput extends ProxyResource {
20272085
outputSnapTime?: number;
20282086
readonly provisioningState?: string;
20292087
readonly resourceState?: LiveOutputResourceState;
2088+
rewindWindowLength?: string;
20302089
readonly systemData?: SystemData;
20312090
}
20322091

@@ -2042,14 +2101,23 @@ export type LiveOutputResourceState = string;
20422101

20432102
// @public
20442103
export interface LiveOutputs {
2104+
asyncOperation(resourceGroupName: string, accountName: string, operationId: string, options?: LiveOutputsAsyncOperationOptionalParams): Promise<LiveOutputsAsyncOperationResponse>;
20452105
beginCreate(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, parameters: LiveOutput, options?: LiveOutputsCreateOptionalParams): Promise<PollerLike<PollOperationState<LiveOutputsCreateResponse>, LiveOutputsCreateResponse>>;
20462106
beginCreateAndWait(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, parameters: LiveOutput, options?: LiveOutputsCreateOptionalParams): Promise<LiveOutputsCreateResponse>;
20472107
beginDelete(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, options?: LiveOutputsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
20482108
beginDeleteAndWait(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, options?: LiveOutputsDeleteOptionalParams): Promise<void>;
20492109
get(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, options?: LiveOutputsGetOptionalParams): Promise<LiveOutputsGetResponse>;
20502110
list(resourceGroupName: string, accountName: string, liveEventName: string, options?: LiveOutputsListOptionalParams): PagedAsyncIterableIterator<LiveOutput>;
2111+
operationLocation(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: string, operationId: string, options?: LiveOutputsOperationLocationOptionalParams): Promise<LiveOutputsOperationLocationResponse>;
20512112
}
20522113

2114+
// @public
2115+
export interface LiveOutputsAsyncOperationOptionalParams extends coreClient.OperationOptions {
2116+
}
2117+
2118+
// @public
2119+
export type LiveOutputsAsyncOperationResponse = AsyncOperationResult;
2120+
20532121
// @public
20542122
export interface LiveOutputsCreateOptionalParams extends coreClient.OperationOptions {
20552123
resumeFrom?: string;
@@ -2086,6 +2154,13 @@ export interface LiveOutputsListOptionalParams extends coreClient.OperationOptio
20862154
// @public
20872155
export type LiveOutputsListResponse = LiveOutputListResult;
20882156

2157+
// @public
2158+
export interface LiveOutputsOperationLocationOptionalParams extends coreClient.OperationOptions {
2159+
}
2160+
2161+
// @public
2162+
export type LiveOutputsOperationLocationResponse = LiveOutput;
2163+
20892164
// @public
20902165
export interface Locations {
20912166
checkNameAvailability(locationName: string, parameters: CheckNameAvailabilityInput, options?: LocationsCheckNameAvailabilityOptionalParams): Promise<LocationsCheckNameAvailabilityResponse>;
@@ -2608,6 +2683,9 @@ export interface ResourceIdentity {
26082683
// @public
26092684
export type Rotation = string;
26102685

2686+
// @public
2687+
export type SecurityLevel = string;
2688+
26112689
// @public
26122690
export interface SelectAudioTrackByAttribute extends AudioTrackDescriptor {
26132691
attribute: TrackAttribute;
@@ -2710,6 +2788,7 @@ export type StreamingEndpointResourceState = string;
27102788

27112789
// @public
27122790
export interface StreamingEndpoints {
2791+
asyncOperation(resourceGroupName: string, accountName: string, operationId: string, options?: StreamingEndpointsAsyncOperationOptionalParams): Promise<StreamingEndpointsAsyncOperationResponse>;
27132792
beginCreate(resourceGroupName: string, accountName: string, streamingEndpointName: string, parameters: StreamingEndpoint, options?: StreamingEndpointsCreateOptionalParams): Promise<PollerLike<PollOperationState<StreamingEndpointsCreateResponse>, StreamingEndpointsCreateResponse>>;
27142793
beginCreateAndWait(resourceGroupName: string, accountName: string, streamingEndpointName: string, parameters: StreamingEndpoint, options?: StreamingEndpointsCreateOptionalParams): Promise<StreamingEndpointsCreateResponse>;
27152794
beginDelete(resourceGroupName: string, accountName: string, streamingEndpointName: string, options?: StreamingEndpointsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
@@ -2724,9 +2803,17 @@ export interface StreamingEndpoints {
27242803
beginUpdateAndWait(resourceGroupName: string, accountName: string, streamingEndpointName: string, parameters: StreamingEndpoint, options?: StreamingEndpointsUpdateOptionalParams): Promise<StreamingEndpointsUpdateResponse>;
27252804
get(resourceGroupName: string, accountName: string, streamingEndpointName: string, options?: StreamingEndpointsGetOptionalParams): Promise<StreamingEndpointsGetResponse>;
27262805
list(resourceGroupName: string, accountName: string, options?: StreamingEndpointsListOptionalParams): PagedAsyncIterableIterator<StreamingEndpoint>;
2806+
operationLocation(resourceGroupName: string, accountName: string, streamingEndpointName: string, operationId: string, options?: StreamingEndpointsOperationLocationOptionalParams): Promise<StreamingEndpointsOperationLocationResponse>;
27272807
skus(resourceGroupName: string, accountName: string, streamingEndpointName: string, options?: StreamingEndpointsSkusOptionalParams): Promise<StreamingEndpointsSkusResponse>;
27282808
}
27292809

2810+
// @public
2811+
export interface StreamingEndpointsAsyncOperationOptionalParams extends coreClient.OperationOptions {
2812+
}
2813+
2814+
// @public
2815+
export type StreamingEndpointsAsyncOperationResponse = AsyncOperationResult;
2816+
27302817
// @public
27312818
export interface StreamingEndpointsCreateOptionalParams extends coreClient.OperationOptions {
27322819
autoStart?: boolean;
@@ -2769,6 +2856,13 @@ export interface StreamingEndpointsListOptionalParams extends coreClient.Operati
27692856
// @public
27702857
export type StreamingEndpointsListResponse = StreamingEndpointListResult;
27712858

2859+
// @public
2860+
export interface StreamingEndpointsOperationLocationOptionalParams extends coreClient.OperationOptions {
2861+
}
2862+
2863+
// @public
2864+
export type StreamingEndpointsOperationLocationResponse = StreamingEndpoint;
2865+
27722866
// @public
27732867
export interface StreamingEndpointsScaleOptionalParams extends coreClient.OperationOptions {
27742868
resumeFrom?: string;

0 commit comments

Comments
 (0)