From f00c315da8534832bf64140dfc276d0bbbac860e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sun, 30 Jan 2022 21:33:50 +0000 Subject: [PATCH] CodeGen from PR 17540 in Azure/azure-rest-api-specs Merge 7c2c7ba62393a74f42acd6a07e8f5c72e51423a1 into 219b2b3dea0233e3cb43f72d2764c0e4e4d8fcd3 --- common/config/rush/pnpm-lock.yaml | 20 +- .../arm-mediaservices/CHANGELOG.md | 64 +- sdk/mediaservices/arm-mediaservices/LICENSE | 2 +- .../arm-mediaservices/_meta.json | 6 +- .../arm-mediaservices/api-extractor.json | 25 +- .../arm-mediaservices/package.json | 8 +- .../review/arm-mediaservices.api.md | 124 +- .../src/azureMediaServices.ts | 26 +- .../arm-mediaservices/src/models/index.ts | 938 +++++---- .../arm-mediaservices/src/models/mappers.ts | 1829 +++++++++-------- .../src/models/parameters.ts | 85 +- .../src/operations/accountFilters.ts | 4 +- .../arm-mediaservices/src/operations/index.ts | 4 +- .../src/operations/locations.ts | 2 +- .../mediaServiceOperationResults.ts | 76 + .../mediaServiceOperationStatuses.ts | 73 + .../src/operations/mediaservices.ts | 193 +- .../operations/privateEndpointConnections.ts | 2 +- .../src/operationsInterfaces/index.ts | 4 +- .../mediaServiceOperationResults.ts | 27 + .../mediaServiceOperationStatuses.ts | 27 + .../src/operationsInterfaces/mediaservices.ts | 41 +- .../arm-mediaservices/test/sampleTest.ts | 48 + .../arm-mediaservices/tsconfig.json | 16 +- 24 files changed, 2255 insertions(+), 1389 deletions(-) create mode 100644 sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationResults.ts create mode 100644 sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationStatuses.ts create mode 100644 sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationResults.ts create mode 100644 sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationStatuses.ts create mode 100644 sdk/mediaservices/arm-mediaservices/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ec3426cf9bd6..bbaedeace1c3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10856,22 +10856,22 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-Z4sbFbr1f8b8N3pjTST4ForUIBgtVkPwucOdkX9C4kFMbjO4asJYZ//VvU4hYCdWmVzV9XoXSWc9E/x1iZ98zg==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-F8O2XQ9PlyZo61/j0AJnv79/UtvW4vie3jIzD5jINbSVB61hLvFNsfkLQIekN8V0mQzmaEHOth+U+WyNvnHrVg==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.1_rollup@2.66.1 - '@rollup/plugin-json': 4.1.0_rollup@2.66.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.66.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.66.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.66.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.66.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -12508,7 +12508,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-1j//b0n9eWzuJsPVA9mYS/nfzXtezd4fX97k9VevtOJoZDBTrboEar4PxqwmsfXqU5CEcdsKXNcWO+5jSrKivA==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-ErwPppmXbFEQ5iXOX90b0H+zpheEH6QZIlN/DOYbgI1KVpaqOzlEGiDuaWApf0dCrF7tyrVobT9656wn524JCA==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -12560,7 +12560,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -15739,7 +15738,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-ENpAvvdCwGkqJ4unWOWpywLDjQIYT2+T+YqE7QarLd7IMf+aWx6HLFlhlvUpgNM0Tw8oL3txyCOGvI6rFqtz+Q==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-v95+TnIgfPJtOulZuW73xOA/OgPCA72RP5aMD0ZAlp3qJNclhxBxULu3r7TUdQVfRrPqKuJaAGCiLUCLPqFRuQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -15785,7 +15784,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false diff --git a/sdk/mediaservices/arm-mediaservices/CHANGELOG.md b/sdk/mediaservices/arm-mediaservices/CHANGELOG.md index 7ae29d09edf4..a4b0e3eb9cd0 100644 --- a/sdk/mediaservices/arm-mediaservices/CHANGELOG.md +++ b/sdk/mediaservices/arm-mediaservices/CHANGELOG.md @@ -1,15 +1,57 @@ # Release History - -## 10.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 11.0.0 (2022-01-30) + +**Features** + + - Added operation group MediaServiceOperationResults + - Added operation group MediaServiceOperationStatuses + - Added operation Mediaservices.beginCreateOrUpdate + - Added operation Mediaservices.beginCreateOrUpdateAndWait + - Added operation Mediaservices.beginUpdate + - Added operation Mediaservices.beginUpdateAndWait + - Added Interface MediaServiceOperationResultsGetHeaders + - Added Interface MediaServiceOperationResultsGetOptionalParams + - Added Interface MediaServiceOperationStatus + - Added Interface MediaServiceOperationStatusesGetOptionalParams + - Added Interface MediaservicesCreateOrUpdateHeaders + - Added Interface MediaservicesUpdateHeaders + - Added Type Alias H264RateControlMode + - Added Type Alias MediaServiceOperationResultsGetResponse + - Added Type Alias MediaServiceOperationStatusesGetResponse + - Added Type Alias ProvisioningState + - Interface MediaservicesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface MediaservicesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface MediaservicesUpdateOptionalParams has a new optional parameter resumeFrom + - Interface MediaservicesUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface MediaServiceUpdate has a new optional parameter privateEndpointConnections + - Interface MediaServiceUpdate has a new optional parameter provisioningState + - Class AzureMediaServices has a new parameter mediaServiceOperationResults + - Class AzureMediaServices has a new parameter mediaServiceOperationStatuses + - Add parameters of MediaservicesCreateOrUpdateHeaders to TypeAlias MediaservicesCreateOrUpdateResponse + - Add parameters of MediaservicesUpdateHeaders to TypeAlias MediaservicesUpdateResponse + - Type Alias H264Layer has a new parameter crf + - Type Alias H264Video has a new parameter rateControlMode + - Type Alias H265Layer has a new parameter crf + - Type Alias MediaService has a new parameter provisioningState + - Type Alias MediaService has a new parameter privateEndpointConnections + - Added Enum KnownH264RateControlMode + - Added Enum KnownProvisioningState + - Enum KnownH265VideoProfile has a new value Main10 + +**Breaking Changes** + + - Removed operation Mediaservices.createOrUpdate + - Removed operation Mediaservices.update + - Interface Layer no longer has parameter odataType + - Type Alias H264Layer no longer has parameter odataType + - Type Alias H265Layer no longer has parameter odataType + - Type Alias H265VideoLayer no longer has parameter odataType + - Type Alias JpgLayer no longer has parameter odataType + - Type Alias PngLayer no longer has parameter odataType + - Type Alias VideoLayer no longer has parameter odataType + + ## 10.0.0 (2021-12-13) The package of @azure/arm-mediaservices is using our next generation design principles since version 10.0.0, which contains breaking changes. diff --git a/sdk/mediaservices/arm-mediaservices/LICENSE b/sdk/mediaservices/arm-mediaservices/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/mediaservices/arm-mediaservices/LICENSE +++ b/sdk/mediaservices/arm-mediaservices/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 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/sdk/mediaservices/arm-mediaservices/_meta.json b/sdk/mediaservices/arm-mediaservices/_meta.json index 39e8f420677d..d78fb7a7b01c 100644 --- a/sdk/mediaservices/arm-mediaservices/_meta.json +++ b/sdk/mediaservices/arm-mediaservices/_meta.json @@ -1,7 +1,7 @@ { - "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", + "commit": "eea9d473feed6d417887170b98a871a7099545f0", "readme": "specification/mediaservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/mediaservices/arm-mediaservices/api-extractor.json b/sdk/mediaservices/arm-mediaservices/api-extractor.json index a487200f1286..4329d45e7e38 100644 --- a/sdk/mediaservices/arm-mediaservices/api-extractor.json +++ b/sdk/mediaservices/arm-mediaservices/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-mediaservices.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/mediaservices/arm-mediaservices/package.json b/sdk/mediaservices/arm-mediaservices/package.json index b464713d3840..4930f276640b 100644 --- a/sdk/mediaservices/arm-mediaservices/package.json +++ b/sdk/mediaservices/arm-mediaservices/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMediaServices.", - "version": "10.0.1", + "version": "11.0.0", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-mediaservices.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md b/sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md index 6fbc8128397d..d6a4ca4f5827 100644 --- a/sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md +++ b/sdk/mediaservices/arm-mediaservices/review/arm-mediaservices.api.md @@ -380,6 +380,10 @@ export class AzureMediaServices extends coreClient.ServiceClient { // (undocumented) locations: Locations; // (undocumented) + mediaServiceOperationResults: MediaServiceOperationResults; + // (undocumented) + mediaServiceOperationStatuses: MediaServiceOperationStatuses; + // (undocumented) mediaservices: Mediaservices; // (undocumented) operations: Operations; @@ -933,20 +937,24 @@ export type H264Complexity = string; // @public export type H264Layer = VideoLayer & { - odataType: "#Microsoft.Media.H264Layer"; profile?: H264VideoProfile; level?: string; bufferWindow?: string; + crf?: number; referenceFrames?: number; entropyMode?: EntropyMode; }; +// @public +export type H264RateControlMode = string; + // @public export type H264Video = Video & { odataType: "#Microsoft.Media.H264Video"; - sceneChangeDetection?: boolean; complexity?: H264Complexity; layers?: H264Layer[]; + rateControlMode?: H264RateControlMode; + sceneChangeDetection?: boolean; }; // @public @@ -957,10 +965,10 @@ export type H265Complexity = string; // @public export type H265Layer = H265VideoLayer & { - odataType: "#Microsoft.Media.H265Layer"; profile?: H265VideoProfile; level?: string; bufferWindow?: string; + crf?: number; referenceFrames?: number; }; @@ -974,7 +982,6 @@ export type H265Video = Video & { // @public export type H265VideoLayer = Layer & { - odataType: "#Microsoft.Media.H265VideoLayer" | "#Microsoft.Media.H265Layer"; bitrate: number; maxBitrate?: number; bFrames?: number; @@ -983,9 +990,6 @@ export type H265VideoLayer = Layer & { adaptiveBFrame?: boolean; }; -// @public (undocumented) -export type H265VideoLayerUnion = H265VideoLayer | H265Layer; - // @public export type H265VideoProfile = string; @@ -1234,7 +1238,6 @@ export type JpgImage = Image_2 & { // @public export type JpgLayer = Layer & { - odataType: "#Microsoft.Media.JpgLayer"; quality?: number; }; @@ -1464,6 +1467,13 @@ export enum KnownH264Complexity { Speed = "Speed" } +// @public +export enum KnownH264RateControlMode { + ABR = "ABR", + CBR = "CBR", + CRF = "CRF" +} + // @public export enum KnownH264VideoProfile { Auto = "Auto", @@ -1484,7 +1494,8 @@ export enum KnownH265Complexity { // @public export enum KnownH265VideoProfile { Auto = "Auto", - Main = "Main" + Main = "Main", + Main10 = "Main10" } // @public @@ -1621,6 +1632,13 @@ export enum KnownPrivateEndpointServiceConnectionStatus { Rejected = "Rejected" } +// @public +export enum KnownProvisioningState { + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", @@ -1717,13 +1735,9 @@ export enum KnownVideoSyncMode { export interface Layer { height?: string; label?: string; - odataType: "#Microsoft.Media.H265VideoLayer" | "#Microsoft.Media.H265Layer" | "#Microsoft.Media.VideoLayer" | "#Microsoft.Media.H264Layer" | "#Microsoft.Media.JpgLayer" | "#Microsoft.Media.PngLayer"; width?: string; } -// @public (undocumented) -export type LayerUnion = Layer | H265VideoLayerUnion | VideoLayerUnion | JpgLayer | PngLayer; - // @public export interface ListContainerSasInput { expiryTime?: Date; @@ -2041,6 +2055,8 @@ export type MediaService = TrackedResource & { encryption?: AccountEncryption; keyDelivery?: KeyDelivery; publicNetworkAccess?: PublicNetworkAccess; + readonly provisioningState?: ProvisioningState; + readonly privateEndpointConnections?: any; }; // @public @@ -2059,24 +2075,76 @@ export interface MediaServiceIdentity { }; } +// @public +export interface MediaServiceOperationResults { + get(locationName: string, operationId: string, options?: MediaServiceOperationResultsGetOptionalParams): Promise; +} + +// @public +export interface MediaServiceOperationResultsGetHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + +// @public +export interface MediaServiceOperationResultsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MediaServiceOperationResultsGetResponse = MediaService; + +// @public +export interface MediaServiceOperationStatus { + endTime?: Date; + error?: ErrorDetail; + id?: string; + name: string; + startTime?: Date; + status: string; +} + +// @public +export interface MediaServiceOperationStatuses { + get(locationName: string, operationId: string, options?: MediaServiceOperationStatusesGetOptionalParams): Promise; +} + +// @public +export interface MediaServiceOperationStatusesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MediaServiceOperationStatusesGetResponse = MediaServiceOperationStatus; + // @public export interface Mediaservices { - createOrUpdate(resourceGroupName: string, accountName: string, parameters: MediaService, options?: MediaservicesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, accountName: string, parameters: MediaService, options?: MediaservicesCreateOrUpdateOptionalParams): Promise, MediaservicesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, parameters: MediaService, options?: MediaservicesCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, accountName: string, parameters: MediaServiceUpdate, options?: MediaservicesUpdateOptionalParams): Promise, MediaservicesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, accountName: string, parameters: MediaServiceUpdate, options?: MediaservicesUpdateOptionalParams): Promise; delete(resourceGroupName: string, accountName: string, options?: MediaservicesDeleteOptionalParams): Promise; get(resourceGroupName: string, accountName: string, options?: MediaservicesGetOptionalParams): Promise; list(resourceGroupName: string, options?: MediaservicesListOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: MediaservicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; listEdgePolicies(resourceGroupName: string, accountName: string, parameters: ListEdgePoliciesInput, options?: MediaservicesListEdgePoliciesOptionalParams): Promise; syncStorageKeys(resourceGroupName: string, accountName: string, parameters: SyncStorageKeysInput, options?: MediaservicesSyncStorageKeysOptionalParams): Promise; - update(resourceGroupName: string, accountName: string, parameters: MediaServiceUpdate, options?: MediaservicesUpdateOptionalParams): Promise; +} + +// @public +export interface MediaservicesCreateOrUpdateHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; } // @public export interface MediaservicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type MediaservicesCreateOrUpdateResponse = MediaService; +export type MediaservicesCreateOrUpdateResponse = MediaservicesCreateOrUpdateHeaders & MediaService; // @public export interface MediaservicesDeleteOptionalParams extends coreClient.OperationOptions { @@ -2128,12 +2196,21 @@ export type MediaservicesListResponse = MediaServiceCollection; export interface MediaservicesSyncStorageKeysOptionalParams extends coreClient.OperationOptions { } +// @public +export interface MediaservicesUpdateHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + // @public export interface MediaservicesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type MediaservicesUpdateResponse = MediaService; +export type MediaservicesUpdateResponse = MediaservicesUpdateHeaders & MediaService; // @public export interface MediaServiceUpdate { @@ -2141,6 +2218,8 @@ export interface MediaServiceUpdate { identity?: MediaServiceIdentity; keyDelivery?: KeyDelivery; readonly mediaServiceId?: string; + readonly privateEndpointConnections?: any; + readonly provisioningState?: ProvisioningState; publicNetworkAccess?: PublicNetworkAccess; storageAccounts?: StorageAccount[]; // (undocumented) @@ -2267,9 +2346,7 @@ export type PngImage = Image_2 & { }; // @public -export type PngLayer = Layer & { - odataType: "#Microsoft.Media.PngLayer"; -}; +export type PngLayer = Layer & {}; // @public export interface PresentationTimeRange { @@ -2404,6 +2481,9 @@ export interface Properties { readonly serviceSpecification?: ServiceSpecification; } +// @public +export type ProvisioningState = string; + // @public export type ProxyResource = Resource & {}; @@ -2984,7 +3064,6 @@ export type VideoAnalyzerPreset = AudioAnalyzerPreset & { // @public export type VideoLayer = Layer & { - odataType: "#Microsoft.Media.VideoLayer" | "#Microsoft.Media.H264Layer"; bitrate: number; maxBitrate?: number; bFrames?: number; @@ -2993,9 +3072,6 @@ export type VideoLayer = Layer & { adaptiveBFrame?: boolean; }; -// @public (undocumented) -export type VideoLayerUnion = VideoLayer | H264Layer; - // @public export type VideoOverlay = Overlay & { odataType: "#Microsoft.Media.VideoOverlay"; diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts index 456ab97103b6..866d6f0040f4 100644 --- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts @@ -9,12 +9,14 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { + AccountFiltersImpl, OperationsImpl, MediaservicesImpl, PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, LocationsImpl, - AccountFiltersImpl, + MediaServiceOperationStatusesImpl, + MediaServiceOperationResultsImpl, AssetsImpl, AssetFiltersImpl, ContentKeyPoliciesImpl, @@ -27,12 +29,14 @@ import { StreamingEndpointsImpl } from "./operations"; import { + AccountFilters, Operations, Mediaservices, PrivateLinkResources, PrivateEndpointConnections, Locations, - AccountFilters, + MediaServiceOperationStatuses, + MediaServiceOperationResults, Assets, AssetFilters, ContentKeyPolicies, @@ -48,8 +52,8 @@ import { AzureMediaServicesOptionalParams } from "./models"; export class AzureMediaServices extends coreClient.ServiceClient { $host: string; - apiVersion: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the AzureMediaServices class. @@ -78,7 +82,7 @@ export class AzureMediaServices extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-mediaservices/1.0.0`; + const packageDetails = `azsdk-js-arm-mediaservices/11.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -101,13 +105,19 @@ export class AzureMediaServices extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-06-01"; + this.apiVersion = options.apiVersion || "2021-11-01"; + this.accountFilters = new AccountFiltersImpl(this); this.operations = new OperationsImpl(this); this.mediaservices = new MediaservicesImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.locations = new LocationsImpl(this); - this.accountFilters = new AccountFiltersImpl(this); + this.mediaServiceOperationStatuses = new MediaServiceOperationStatusesImpl( + this + ); + this.mediaServiceOperationResults = new MediaServiceOperationResultsImpl( + this + ); this.assets = new AssetsImpl(this); this.assetFilters = new AssetFiltersImpl(this); this.contentKeyPolicies = new ContentKeyPoliciesImpl(this); @@ -120,12 +130,14 @@ export class AzureMediaServices extends coreClient.ServiceClient { this.streamingEndpoints = new StreamingEndpointsImpl(this); } + accountFilters: AccountFilters; operations: Operations; mediaservices: Mediaservices; privateLinkResources: PrivateLinkResources; privateEndpointConnections: PrivateEndpointConnections; locations: Locations; - accountFilters: AccountFilters; + mediaServiceOperationStatuses: MediaServiceOperationStatuses; + mediaServiceOperationResults: MediaServiceOperationResults; assets: Assets; assetFilters: AssetFilters; contentKeyPolicies: ContentKeyPolicies; diff --git a/sdk/mediaservices/arm-mediaservices/src/models/index.ts b/sdk/mediaservices/arm-mediaservices/src/models/index.ts index 57465d3ec7e6..ff39674c18e4 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/index.ts @@ -47,12 +47,6 @@ export type CodecUnion = | VideoUnion | CopyVideo | CopyAudio; -export type LayerUnion = - | Layer - | H265VideoLayerUnion - | VideoLayerUnion - | JpgLayer - | PngLayer; export type TrackDescriptorUnion = | TrackDescriptor | AudioTrackDescriptorUnion @@ -71,8 +65,6 @@ export type AudioAnalyzerPresetUnion = export type JobInputClipUnion = JobInputClip | JobInputAsset | JobInputHttp; export type AudioUnion = Audio | AacAudio; export type VideoUnion = Video | H265Video | ImageUnion | H264Video; -export type H265VideoLayerUnion = H265VideoLayer | H265Layer; -export type VideoLayerUnion = VideoLayer | H264Layer; export type AudioTrackDescriptorUnion = | AudioTrackDescriptor | SelectAudioTrackByAttribute @@ -88,6 +80,136 @@ export type MultiBitrateFormatUnion = | TransportStreamFormat; export type ImageUnion = Image | JpgImage | PngImage; +/** A collection of AccountFilter items. */ +export interface AccountFilterCollection { + /** A collection of AccountFilter items. */ + value?: AccountFilter[]; + /** A link to the next page of the collection (when the collection contains too many results to return in one response). */ + odataNextLink?: string; +} + +/** The presentation time range, this is asset related and not recommended for Account Filter. */ +export interface PresentationTimeRange { + /** The absolute start time boundary. */ + startTimestamp?: number; + /** The absolute end time boundary. */ + endTimestamp?: number; + /** The relative to end sliding window. */ + presentationWindowDuration?: number; + /** The relative to end right edge. */ + liveBackoffDuration?: number; + /** The time scale of time stamps. */ + timescale?: number; + /** The indicator of forcing existing of end time stamp. */ + forceEndTimestamp?: boolean; +} + +/** Filter First Quality */ +export interface FirstQuality { + /** The first quality bitrate. */ + bitrate: number; +} + +/** Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation. */ +export interface FilterTrackSelection { + /** The track selections. */ + trackSelections: FilterTrackPropertyCondition[]; +} + +/** The class to specify one track property condition. */ +export interface FilterTrackPropertyCondition { + /** The track property type. */ + property: FilterTrackPropertyType; + /** The track property value. */ + value: string; + /** The track property condition operation. */ + operation: FilterTrackPropertyCompareOperation; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + /** A collection of Operation items. */ export interface OperationCollection { /** A collection of Operation items. */ @@ -244,55 +366,6 @@ export interface MetricDimension { readonly toBeExportedForShoebox?: boolean; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - /** A collection of MediaService items. */ export interface MediaServiceCollection { /** A collection of MediaService items. */ @@ -391,41 +464,6 @@ export interface UserAssignedManagedIdentity { readonly principalId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - /** A Media Services account update. */ export interface MediaServiceUpdate { /** Resource tags. */ @@ -446,6 +484,16 @@ export interface MediaServiceUpdate { keyDelivery?: KeyDelivery; /** Whether or not public network access is allowed for resources under the Media Services account. */ publicNetworkAccess?: PublicNetworkAccess; + /** + * Provisioning state of the Media Services account. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The Private Endpoint Connections created for the Media Service account. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: any; } /** The input to the sync storage keys request. */ @@ -532,66 +580,36 @@ export interface EntityNameAvailabilityCheckOutput { message?: string; } -/** A collection of AccountFilter items. */ -export interface AccountFilterCollection { - /** A collection of AccountFilter items. */ - value?: AccountFilter[]; +/** Status of media service operation. */ +export interface MediaServiceOperationStatus { + /** Operation identifier. */ + name: string; + /** Operation resource ID. */ + id?: string; + /** Operation start time. */ + startTime?: Date; + /** Operation end time. */ + endTime?: Date; + /** Operation status. */ + status: string; + /** The error detail. */ + error?: ErrorDetail; +} + +/** A collection of Asset items. */ +export interface AssetCollection { + /** A collection of Asset items. */ + value?: Asset[]; /** A link to the next page of the collection (when the collection contains too many results to return in one response). */ odataNextLink?: string; } -/** The presentation time range, this is asset related and not recommended for Account Filter. */ -export interface PresentationTimeRange { - /** The absolute start time boundary. */ - startTimestamp?: number; - /** The absolute end time boundary. */ - endTimestamp?: number; - /** The relative to end sliding window. */ - presentationWindowDuration?: number; - /** The relative to end right edge. */ - liveBackoffDuration?: number; - /** The time scale of time stamps. */ - timescale?: number; - /** The indicator of forcing existing of end time stamp. */ - forceEndTimestamp?: boolean; -} - -/** Filter First Quality */ -export interface FirstQuality { - /** The first quality bitrate. */ - bitrate: number; -} - -/** Representing a list of FilterTrackPropertyConditions to select a track. The filters are combined using a logical AND operation. */ -export interface FilterTrackSelection { - /** The track selections. */ - trackSelections: FilterTrackPropertyCondition[]; -} - -/** The class to specify one track property condition. */ -export interface FilterTrackPropertyCondition { - /** The track property type. */ - property: FilterTrackPropertyType; - /** The track property value. */ - value: string; - /** The track property condition operation. */ - operation: FilterTrackPropertyCompareOperation; -} - -/** A collection of Asset items. */ -export interface AssetCollection { - /** A collection of Asset items. */ - value?: Asset[]; - /** A link to the next page of the collection (when the collection contains too many results to return in one response). */ - odataNextLink?: string; -} - -/** The parameters to the list SAS request. */ -export interface ListContainerSasInput { - /** The permissions to set on the SAS URL. */ - permissions?: AssetContainerPermission; - /** The SAS URL expiration time. This must be less than 24 hours from the current time. */ - expiryTime?: Date; +/** The parameters to the list SAS request. */ +export interface ListContainerSasInput { + /** The permissions to set on the SAS URL. */ + permissions?: AssetContainerPermission; + /** The SAS URL expiration time. This must be less than 24 hours from the current time. */ + expiryTime?: Date; } /** The Asset Storage container SAS URLs. */ @@ -1368,14 +1386,6 @@ export interface Codec { /** The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution. */ export interface Layer { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: - | "#Microsoft.Media.H265VideoLayer" - | "#Microsoft.Media.H265Layer" - | "#Microsoft.Media.VideoLayer" - | "#Microsoft.Media.H264Layer" - | "#Microsoft.Media.JpgLayer" - | "#Microsoft.Media.PngLayer"; /** The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input. */ width?: string; /** The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input. */ @@ -1505,6 +1515,9 @@ export interface ClipTime { | "#Microsoft.Media.UtcClipTime"; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export type ProxyResource = Resource & {}; + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export type TrackedResource = Resource & { /** Resource tags. */ @@ -1542,9 +1555,6 @@ export type PrivateEndpointConnection = Resource & { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; }; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; - /** Represents a configuration for non-DRM keys. */ export type ContentKeyPolicyClearKeyConfiguration = ContentKeyPolicyConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1657,7 +1667,7 @@ export type AudioAnalyzerPreset = Preset & { export type BuiltInStandardEncoderPreset = Preset & { /** Polymorphic discriminator, which specifies the different types this object can be */ odataType: "#Microsoft.Media.BuiltInStandardEncoderPreset"; - /** PresetConfigurations are only supported for the ContentAwareEncoding and H265ContentAwareEncoding built-in presets. These settings will not affect other built-in or custom defined presets. */ + /** Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset. */ configurations?: PresetConfigurations; /** The built-in preset to be used for encoding videos. */ presetName: EncoderNamedPreset; @@ -1802,8 +1812,6 @@ export type CopyAudio = Codec & { /** Describes the settings to be used when encoding the input video into a desired output bitrate layer. */ export type H265VideoLayer = Layer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.H265VideoLayer" | "#Microsoft.Media.H265Layer"; /** The average bitrate in bits per second at which to encode the input video when generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field. */ 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. */ @@ -1820,8 +1828,6 @@ export type H265VideoLayer = Layer & { /** Describes the settings to be used when encoding the input video into a desired output bitrate layer. */ export type VideoLayer = Layer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.VideoLayer" | "#Microsoft.Media.H264Layer"; /** 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; /** 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. */ @@ -1838,17 +1844,12 @@ export type VideoLayer = Layer & { /** Describes the settings to produce a JPEG image from the input video. */ export type JpgLayer = Layer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.JpgLayer"; /** The compression quality of the JPEG output. Range is from 0-100 and the default is 70. */ quality?: number; }; /** Describes the settings to produce a PNG image from the input video. */ -export type PngLayer = Layer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.PngLayer"; -}; +export type PngLayer = Layer & {}; /** A TrackSelection to select audio tracks. */ export type AudioTrackDescriptor = TrackDescriptor & { @@ -1944,137 +1945,6 @@ export type UtcClipTime = ClipTime & { time: Date; }; -/** A Media Services account. */ -export type MediaService = TrackedResource & { - /** The Managed Identity for the Media Services account. */ - identity?: MediaServiceIdentity; - /** - * The system metadata relating to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * The Media Services account ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mediaServiceId?: string; - /** The storage accounts for this resource. */ - storageAccounts?: StorageAccount[]; - storageAuthentication?: StorageAuthentication; - /** The account encryption properties. */ - encryption?: AccountEncryption; - /** The Key Delivery properties for Media Services account. */ - keyDelivery?: KeyDelivery; - /** Whether or not public network access is allowed for resources under the Media Services account. */ - publicNetworkAccess?: PublicNetworkAccess; -}; - -/** The live event. */ -export type LiveEvent = TrackedResource & { - /** - * The system metadata relating to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** A description for the live event. */ - description?: string; - /** Live event input settings. It defines how the live event receives input from a contribution encoder. */ - input?: LiveEventInput; - /** Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output. */ - preview?: LiveEventPreview; - /** Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used. */ - encoding?: LiveEventEncoding; - /** Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature. */ - transcriptions?: LiveEventTranscription[]; - /** - * The provisioning state of the live event. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: LiveEventResourceState; - /** Live event cross site access policies. */ - crossSiteAccessPolicies?: CrossSiteAccessPolicies; - /** Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state */ - useStaticHostname?: boolean; - /** When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center. */ - hostnamePrefix?: string; - /** The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'. */ - streamOptions?: StreamOptionsFlag[]; - /** - * The creation time for the live event - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly created?: Date; - /** - * The last modified time of the live event. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModified?: Date; -}; - -/** The streaming endpoint. */ -export type StreamingEndpoint = TrackedResource & { - /** - * The system metadata relating to this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** The streaming endpoint description. */ - description?: string; - /** The number of scale units. Use the Scale operation to adjust this value. */ - scaleUnits?: number; - /** This feature is deprecated, do not set a value for this property. */ - availabilitySetName?: string; - /** The access control definition of the streaming endpoint. */ - accessControl?: StreamingEndpointAccessControl; - /** Max cache age */ - maxCacheAge?: number; - /** The custom host names of the streaming endpoint */ - customHostNames?: string[]; - /** - * The streaming endpoint host name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostName?: string; - /** The CDN enabled flag. */ - cdnEnabled?: boolean; - /** The CDN provider name. */ - cdnProvider?: string; - /** The CDN profile name. */ - cdnProfile?: string; - /** - * The provisioning state of the streaming endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The resource state of the streaming endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceState?: StreamingEndpointResourceState; - /** The streaming endpoint access policies. */ - crossSiteAccessPolicies?: CrossSiteAccessPolicies; - /** - * The free trial expiration time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly freeTrialEndTime?: Date; - /** - * The exact time the streaming endpoint was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly created?: Date; - /** - * The exact time the streaming endpoint was last modified. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModified?: Date; -}; - /** An Account Filter. */ export type AccountFilter = ProxyResource & { /** @@ -2313,25 +2183,166 @@ export type LiveOutput = ProxyResource & { /** The initial timestamp that the live output will start at, any content before this value will not be archived. */ outputSnapTime?: number; /** - * The creation time the live output. + * The creation time the live output. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly created?: Date; + /** + * The time the live output was last modified. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModified?: Date; + /** + * The provisioning state of the live output. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The resource state of the live output. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: LiveOutputResourceState; +}; + +/** A Media Services account. */ +export type MediaService = TrackedResource & { + /** The Managed Identity for the Media Services account. */ + identity?: MediaServiceIdentity; + /** + * The system metadata relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** + * The Media Services account ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mediaServiceId?: string; + /** The storage accounts for this resource. */ + storageAccounts?: StorageAccount[]; + storageAuthentication?: StorageAuthentication; + /** The account encryption properties. */ + encryption?: AccountEncryption; + /** The Key Delivery properties for Media Services account. */ + keyDelivery?: KeyDelivery; + /** Whether or not public network access is allowed for resources under the Media Services account. */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Provisioning state of the Media Services account. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The Private Endpoint Connections created for the Media Service account. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: any; +}; + +/** The live event. */ +export type LiveEvent = TrackedResource & { + /** + * The system metadata relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description for the live event. */ + description?: string; + /** Live event input settings. It defines how the live event receives input from a contribution encoder. */ + input?: LiveEventInput; + /** Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output. */ + preview?: LiveEventPreview; + /** Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used. */ + encoding?: LiveEventEncoding; + /** Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature. */ + transcriptions?: LiveEventTranscription[]; + /** + * The provisioning state of the live event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceState?: LiveEventResourceState; + /** Live event cross site access policies. */ + crossSiteAccessPolicies?: CrossSiteAccessPolicies; + /** Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state */ + useStaticHostname?: boolean; + /** When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center. */ + hostnamePrefix?: string; + /** The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'. */ + streamOptions?: StreamOptionsFlag[]; + /** + * The creation time for the live event + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly created?: Date; + /** + * The last modified time of the live event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModified?: Date; +}; + +/** The streaming endpoint. */ +export type StreamingEndpoint = TrackedResource & { + /** + * The system metadata relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The streaming endpoint description. */ + description?: string; + /** The number of scale units. Use the Scale operation to adjust this value. */ + scaleUnits?: number; + /** This feature is deprecated, do not set a value for this property. */ + availabilitySetName?: string; + /** The access control definition of the streaming endpoint. */ + accessControl?: StreamingEndpointAccessControl; + /** Max cache age */ + maxCacheAge?: number; + /** The custom host names of the streaming endpoint */ + customHostNames?: string[]; + /** + * The streaming endpoint host name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostName?: string; + /** The CDN enabled flag. */ + cdnEnabled?: boolean; + /** The CDN provider name. */ + cdnProvider?: string; + /** The CDN profile name. */ + cdnProfile?: string; + /** + * The provisioning state of the streaming endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly created?: Date; + readonly provisioningState?: string; /** - * The time the live output was last modified. + * The resource state of the streaming endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModified?: Date; + readonly resourceState?: StreamingEndpointResourceState; + /** The streaming endpoint access policies. */ + crossSiteAccessPolicies?: CrossSiteAccessPolicies; /** - * The provisioning state of the live output. + * The free trial expiration time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly freeTrialEndTime?: Date; /** - * The resource state of the live output. + * The exact time the streaming endpoint was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceState?: LiveOutputResourceState; + readonly created?: Date; + /** + * The exact time the streaming endpoint was last modified. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModified?: Date; }; /** A video analyzer preset that extracts insights (rich metadata) from both audio and video, and outputs a JSON format file. */ @@ -2397,38 +2408,40 @@ export type Image = Video & { export type H264Video = Video & { /** Polymorphic discriminator, which specifies the different types this object can be */ odataType: "#Microsoft.Media.H264Video"; - /** Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video. */ - sceneChangeDetection?: boolean; /** Tells the encoder how to choose its encoding settings. The default value is Balanced. */ complexity?: H264Complexity; /** The collection of output H.264 layers to be produced by the encoder. */ layers?: H264Layer[]; + /** The video rate control mode */ + rateControlMode?: H264RateControlMode; + /** Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video. */ + sceneChangeDetection?: boolean; }; /** Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.265 video codec. */ export type H265Layer = H265VideoLayer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.H265Layer"; /** We currently support Main. Default is Auto. */ profile?: H265VideoProfile; /** We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. */ level?: string; /** The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S). */ bufferWindow?: string; + /** The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 28. */ + crf?: number; /** The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting. */ referenceFrames?: number; }; /** Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec. */ export type H264Layer = VideoLayer & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - odataType: "#Microsoft.Media.H264Layer"; /** We currently support Baseline, Main, High, High422, High444. Default is Auto. */ profile?: H264VideoProfile; /** We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. */ level?: string; /** The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S). */ bufferWindow?: string; + /** The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality degradation will be noticed. Default value is 23. */ + crf?: number; /** The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting. */ referenceFrames?: number; /** The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. */ @@ -2517,6 +2530,104 @@ export type PngImage = Image & { layers?: PngLayer[]; }; +/** Defines headers for Mediaservices_createOrUpdate operation. */ +export interface MediaservicesCreateOrUpdateHeaders { + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + location?: string; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Mediaservices_update operation. */ +export interface MediaservicesUpdateHeaders { + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + location?: string; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for MediaServiceOperationResults_get operation. */ +export interface MediaServiceOperationResultsGetHeaders { + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + location?: string; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Known values of {@link FilterTrackPropertyType} that the service accepts. */ +export enum KnownFilterTrackPropertyType { + /** The unknown track property type. */ + Unknown = "Unknown", + /** The type. */ + Type = "Type", + /** The name. */ + Name = "Name", + /** The language. */ + Language = "Language", + /** The fourCC. */ + FourCC = "FourCC", + /** The bitrate. */ + Bitrate = "Bitrate" +} + +/** + * Defines values for FilterTrackPropertyType. \ + * {@link KnownFilterTrackPropertyType} can be used interchangeably with FilterTrackPropertyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown**: The unknown track property type. \ + * **Type**: The type. \ + * **Name**: The name. \ + * **Language**: The language. \ + * **FourCC**: The fourCC. \ + * **Bitrate**: The bitrate. + */ +export type FilterTrackPropertyType = string; + +/** Known values of {@link FilterTrackPropertyCompareOperation} that the service accepts. */ +export enum KnownFilterTrackPropertyCompareOperation { + /** The equal operation. */ + Equal = "Equal", + /** The not equal operation. */ + NotEqual = "NotEqual" +} + +/** + * Defines values for FilterTrackPropertyCompareOperation. \ + * {@link KnownFilterTrackPropertyCompareOperation} can be used interchangeably with FilterTrackPropertyCompareOperation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Equal**: The equal operation. \ + * **NotEqual**: The not equal operation. + */ +export type FilterTrackPropertyCompareOperation = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Known values of {@link MetricUnit} that the service accepts. */ export enum KnownMetricUnit { /** The number of bytes. */ @@ -2664,25 +2775,26 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - User = "User", - Application = "Application", - ManagedIdentity = "ManagedIdentity", - Key = "Key" +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Provisioning state failed. */ + Failed = "Failed", + /** Provisioning state in progress. */ + InProgress = "InProgress", + /** Provisioning state succeeded. */ + Succeeded = "Succeeded" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **Failed**: Provisioning state failed. \ + * **InProgress**: Provisioning state in progress. \ + * **Succeeded**: Provisioning state succeeded. */ -export type CreatedByType = string; +export type ProvisioningState = string; /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ export enum KnownPrivateEndpointServiceConnectionStatus { @@ -2722,54 +2834,6 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; -/** Known values of {@link FilterTrackPropertyType} that the service accepts. */ -export enum KnownFilterTrackPropertyType { - /** The unknown track property type. */ - Unknown = "Unknown", - /** The type. */ - Type = "Type", - /** The name. */ - Name = "Name", - /** The language. */ - Language = "Language", - /** The fourCC. */ - FourCC = "FourCC", - /** The bitrate. */ - Bitrate = "Bitrate" -} - -/** - * Defines values for FilterTrackPropertyType. \ - * {@link KnownFilterTrackPropertyType} can be used interchangeably with FilterTrackPropertyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: The unknown track property type. \ - * **Type**: The type. \ - * **Name**: The name. \ - * **Language**: The language. \ - * **FourCC**: The fourCC. \ - * **Bitrate**: The bitrate. - */ -export type FilterTrackPropertyType = string; - -/** Known values of {@link FilterTrackPropertyCompareOperation} that the service accepts. */ -export enum KnownFilterTrackPropertyCompareOperation { - /** The equal operation. */ - Equal = "Equal", - /** The not equal operation. */ - NotEqual = "NotEqual" -} - -/** - * Defines values for FilterTrackPropertyCompareOperation. \ - * {@link KnownFilterTrackPropertyCompareOperation} can be used interchangeably with FilterTrackPropertyCompareOperation, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equal**: The equal operation. \ - * **NotEqual**: The not equal operation. - */ -export type FilterTrackPropertyCompareOperation = string; - /** Known values of {@link AssetStorageEncryptionFormat} that the service accepts. */ export enum KnownAssetStorageEncryptionFormat { /** The Asset does not use client-side storage encryption (this is the only allowed value for new Assets). */ @@ -3381,7 +3445,9 @@ export enum KnownH265VideoProfile { /** Tells the encoder to automatically determine the appropriate H.265 profile. */ Auto = "Auto", /** Main profile (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier) */ - Main = "Main" + Main = "Main", + /** Main 10 profile (https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#Main_10) */ + Main10 = "Main10" } /** @@ -3390,7 +3456,8 @@ export enum KnownH265VideoProfile { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Auto**: Tells the encoder to automatically determine the appropriate H.265 profile. \ - * **Main**: Main profile (https:\/\/x265.readthedocs.io\/en\/default\/cli.html?highlight=profile#profile-level-tier) + * **Main**: Main profile (https:\/\/x265.readthedocs.io\/en\/default\/cli.html?highlight=profile#profile-level-tier) \ + * **Main10**: Main 10 profile (https:\/\/en.wikipedia.org\/wiki\/High_Efficiency_Video_Coding#Main_10) */ export type H265VideoProfile = string; @@ -3737,6 +3804,27 @@ export enum KnownH264Complexity { */ export type H264Complexity = string; +/** Known values of {@link H264RateControlMode} that the service accepts. */ +export enum KnownH264RateControlMode { + /** Average Bitrate (ABR) mode that hits the target bitrate: Default mode. */ + ABR = "ABR", + /** Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate. */ + CBR = "CBR", + /** Constant Rate Factor (CRF) mode that targets at constant subjective quality. */ + CRF = "CRF" +} + +/** + * Defines values for H264RateControlMode. \ + * {@link KnownH264RateControlMode} can be used interchangeably with H264RateControlMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ABR**: Average Bitrate (ABR) mode that hits the target bitrate: Default mode. \ + * **CBR**: Constant Bitrate (CBR) mode that tightens bitrate variations around target bitrate. \ + * **CRF**: Constant Rate Factor (CRF) mode that targets at constant subjective quality. + */ +export type H264RateControlMode = string; + /** Known values of {@link Complexity} that the service accepts. */ export enum KnownComplexity { /** Configures the encoder to use settings optimized for faster encoding. Quality is sacrificed to decrease encoding time. */ @@ -3857,6 +3945,45 @@ export enum KnownInsightsType { */ export type InsightsType = string; +/** Optional parameters. */ +export interface AccountFiltersListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AccountFiltersListResponse = AccountFilterCollection; + +/** Optional parameters. */ +export interface AccountFiltersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AccountFiltersGetResponse = AccountFilter; + +/** Optional parameters. */ +export interface AccountFiltersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AccountFiltersCreateOrUpdateResponse = AccountFilter; + +/** Optional parameters. */ +export interface AccountFiltersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AccountFiltersUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AccountFiltersUpdateResponse = AccountFilter; + +/** Optional parameters. */ +export interface AccountFiltersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AccountFiltersListNextResponse = AccountFilterCollection; + /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} @@ -3880,10 +4007,16 @@ export type MediaservicesGetResponse = MediaService; /** Optional parameters. */ export interface MediaservicesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type MediaservicesCreateOrUpdateResponse = MediaService; +export type MediaservicesCreateOrUpdateResponse = MediaservicesCreateOrUpdateHeaders & + MediaService; /** Optional parameters. */ export interface MediaservicesDeleteOptionalParams @@ -3891,10 +4024,16 @@ export interface MediaservicesDeleteOptionalParams /** Optional parameters. */ export interface MediaservicesUpdateOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ -export type MediaservicesUpdateResponse = MediaService; +export type MediaservicesUpdateResponse = MediaservicesUpdateHeaders & + MediaService; /** Optional parameters. */ export interface MediaservicesSyncStorageKeysOptionalParams @@ -3975,43 +4114,18 @@ export interface LocationsCheckNameAvailabilityOptionalParams export type LocationsCheckNameAvailabilityResponse = EntityNameAvailabilityCheckOutput; /** Optional parameters. */ -export interface AccountFiltersListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AccountFiltersListResponse = AccountFilterCollection; - -/** Optional parameters. */ -export interface AccountFiltersGetOptionalParams +export interface MediaServiceOperationStatusesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AccountFiltersGetResponse = AccountFilter; - -/** Optional parameters. */ -export interface AccountFiltersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type AccountFiltersCreateOrUpdateResponse = AccountFilter; - -/** Optional parameters. */ -export interface AccountFiltersDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface AccountFiltersUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type AccountFiltersUpdateResponse = AccountFilter; +export type MediaServiceOperationStatusesGetResponse = MediaServiceOperationStatus; /** Optional parameters. */ -export interface AccountFiltersListNextOptionalParams +export interface MediaServiceOperationResultsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AccountFiltersListNextResponse = AccountFilterCollection; +/** Contains response data for the get operation. */ +export type MediaServiceOperationResultsGetResponse = MediaService; /** Optional parameters. */ export interface AssetsListOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts index 12a18b8c6604..0e734cee90dc 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const OperationCollection: coreClient.CompositeMapper = { +export const AccountFilterCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationCollection", + className: "AccountFilterCollection", modelProperties: { value: { serializedName: "value", @@ -20,279 +20,318 @@ export const OperationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "AccountFilter" } } } + }, + odataNextLink: { + serializedName: "@odata\\.nextLink", + type: { + name: "String" + } } } } }; -export const Operation: coreClient.CompositeMapper = { +export const PresentationTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "PresentationTimeRange", modelProperties: { - name: { - serializedName: "name", - required: true, + startTimestamp: { + serializedName: "startTimestamp", type: { - name: "String" + name: "Number" } }, - display: { - serializedName: "display", + endTimestamp: { + serializedName: "endTimestamp", type: { - name: "Composite", - className: "OperationDisplay" + name: "Number" } }, - origin: { - serializedName: "origin", + presentationWindowDuration: { + serializedName: "presentationWindowDuration", type: { - name: "String" + name: "Number" } }, - properties: { - serializedName: "properties", + liveBackoffDuration: { + serializedName: "liveBackoffDuration", type: { - name: "Composite", - className: "Properties" + name: "Number" } }, - isDataAction: { - serializedName: "isDataAction", - nullable: true, + timescale: { + serializedName: "timescale", type: { - name: "Boolean" + name: "Number" } }, - actionType: { - serializedName: "actionType", - nullable: true, + forceEndTimestamp: { + serializedName: "forceEndTimestamp", type: { - name: "String" + name: "Boolean" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const FirstQuality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "FirstQuality", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + bitrate: { + serializedName: "bitrate", + required: true, type: { - name: "String" + name: "Number" } } } } }; -export const Properties: coreClient.CompositeMapper = { +export const FilterTrackSelection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Properties", + className: "FilterTrackSelection", modelProperties: { - serviceSpecification: { - serializedName: "serviceSpecification", + trackSelections: { + serializedName: "trackSelections", + required: true, type: { - name: "Composite", - className: "ServiceSpecification" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FilterTrackPropertyCondition" + } + } } } } } }; -export const ServiceSpecification: coreClient.CompositeMapper = { +export const FilterTrackPropertyCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceSpecification", + className: "FilterTrackPropertyCondition", modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", - readOnly: true, + property: { + serializedName: "property", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogSpecification" - } - } + name: "String" } }, - metricSpecifications: { - serializedName: "metricSpecifications", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSpecification" - } - } + name: "String" + } + }, + operation: { + serializedName: "operation", + required: true, + type: { + name: "String" } } } } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - blobDuration: { - serializedName: "blobDuration", - readOnly: true, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const MetricSpecification: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSpecification", + className: "Resource", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - displayDescription: { - serializedName: "displayDescription", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } - }, - unit: { - serializedName: "unit", + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + } +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", readOnly: true, type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + message: { + serializedName: "message", readOnly: true, type: { name: "String" } }, - lockAggregationType: { - serializedName: "lockAggregationType", + target: { + serializedName: "target", readOnly: true, type: { name: "String" } }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } }, - dimensions: { - serializedName: "dimensions", + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDimension" + className: "ErrorAdditionalInfo" } } } - }, - enableRegionalMdmAccount: { - serializedName: "enableRegionalMdmAccount", - readOnly: true, - type: { - name: "Boolean" - } - }, - sourceMdmAccount: { - serializedName: "sourceMdmAccount", + } + } + } +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", + info: { + serializedName: "info", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - }, - supportedTimeGrainTypes: { - serializedName: "supportedTimeGrainTypes", - readOnly: true, + } + } + } +}; + +export const OperationCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationCollection", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Operation" } } } @@ -301,100 +340,271 @@ export const MetricSpecification: coreClient.CompositeMapper = { } }; -export const MetricDimension: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDimension", + className: "Operation", modelProperties: { name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", - readOnly: true, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", type: { name: "String" } }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", - readOnly: true, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "Properties" + } + }, + isDataAction: { + serializedName: "isDataAction", + nullable: true, type: { name: "Boolean" } + }, + actionType: { + serializedName: "actionType", + nullable: true, + type: { + name: "String" + } } } } }; -export const ErrorResponse: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "OperationDisplay", modelProperties: { - error: { - serializedName: "error", + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Properties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Properties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", type: { name: "Composite", - className: "ErrorDetail" + className: "ServiceSpecification" } } } } }; -export const ErrorDetail: coreClient.CompositeMapper = { +export const ServiceSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "ServiceSpecification", modelProperties: { - code: { - serializedName: "code", + logSpecifications: { + serializedName: "logSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", + displayName: { + serializedName: "displayName", readOnly: true, type: { name: "String" } }, - target: { - serializedName: "target", + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - details: { - serializedName: "details", + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + readOnly: true, + type: { + name: "String" + } + }, + lockAggregationType: { + serializedName: "lockAggregationType", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ErrorDetail" + name: "String" } } } }, - additionalInfo: { - serializedName: "additionalInfo", + dimensions: { + serializedName: "dimensions", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" + className: "MetricDimension" + } + } + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + readOnly: true, + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + readOnly: true, + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + readOnly: true, + type: { + name: "String" + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -403,24 +613,30 @@ export const ErrorDetail: coreClient.CompositeMapper = { } }; -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { +export const MetricDimension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "MetricDimension", modelProperties: { - type: { - serializedName: "type", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - info: { - serializedName: "info", + displayName: { + serializedName: "displayName", readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + readOnly: true, + type: { + name: "Boolean" } } } @@ -682,81 +898,6 @@ export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const MediaServiceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -822,6 +963,20 @@ export const MediaServiceUpdate: coreClient.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "any" + } } } } @@ -1068,141 +1223,49 @@ export const EntityNameAvailabilityCheckOutput: coreClient.CompositeMapper = { } }; -export const AccountFilterCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountFilterCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccountFilter" - } - } - } - }, - odataNextLink: { - serializedName: "@odata\\.nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PresentationTimeRange: coreClient.CompositeMapper = { +export const MediaServiceOperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PresentationTimeRange", - modelProperties: { - startTimestamp: { - serializedName: "startTimestamp", - type: { - name: "Number" - } - }, - endTimestamp: { - serializedName: "endTimestamp", - type: { - name: "Number" - } - }, - presentationWindowDuration: { - serializedName: "presentationWindowDuration", - type: { - name: "Number" - } - }, - liveBackoffDuration: { - serializedName: "liveBackoffDuration", - type: { - name: "Number" - } - }, - timescale: { - serializedName: "timescale", - type: { - name: "Number" - } - }, - forceEndTimestamp: { - serializedName: "forceEndTimestamp", - type: { - name: "Boolean" - } - } - } - } -}; - -export const FirstQuality: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirstQuality", - modelProperties: { - bitrate: { - serializedName: "bitrate", - required: true, - type: { - name: "Number" - } - } - } - } -}; - -export const FilterTrackSelection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FilterTrackSelection", - modelProperties: { - trackSelections: { - serializedName: "trackSelections", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FilterTrackPropertyCondition" - } - } - } - } - } - } -}; - -export const FilterTrackPropertyCondition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FilterTrackPropertyCondition", - modelProperties: { - property: { - serializedName: "property", + className: "MediaServiceOperationStatus", + modelProperties: { + name: { + serializedName: "name", required: true, type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + id: { + serializedName: "id", type: { name: "String" } }, - operation: { - serializedName: "operation", + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", required: true, type: { name: "String" } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail" + } } } } @@ -3331,19 +3394,7 @@ export const Layer: coreClient.CompositeMapper = { type: { name: "Composite", className: "Layer", - uberParent: "Layer", - polymorphicDiscriminator: { - serializedName: "@odata\\.type", - clientName: "odataType" - }, modelProperties: { - odataType: { - serializedName: "@odata\\.type", - required: true, - type: { - name: "String" - } - }, width: { serializedName: "width", type: { @@ -3700,6 +3751,16 @@ export const ClipTime: coreClient.CompositeMapper = { } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3795,16 +3856,6 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const ContentKeyPolicyClearKeyConfiguration: coreClient.CompositeMapper = { serializedName: "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration", type: { @@ -4528,15 +4579,9 @@ export const CopyAudio: coreClient.CompositeMapper = { }; export const H265VideoLayer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.H265VideoLayer", type: { name: "Composite", className: "H265VideoLayer", - uberParent: "Layer", - polymorphicDiscriminator: { - serializedName: "@odata\\.type", - clientName: "odataType" - }, modelProperties: { ...Layer.type.modelProperties, bitrate: { @@ -4581,15 +4626,9 @@ export const H265VideoLayer: coreClient.CompositeMapper = { }; export const VideoLayer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.VideoLayer", type: { name: "Composite", className: "VideoLayer", - uberParent: "Layer", - polymorphicDiscriminator: { - serializedName: "@odata\\.type", - clientName: "odataType" - }, modelProperties: { ...Layer.type.modelProperties, bitrate: { @@ -4634,12 +4673,9 @@ export const VideoLayer: coreClient.CompositeMapper = { }; export const JpgLayer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.JpgLayer", type: { name: "Composite", className: "JpgLayer", - uberParent: "Layer", - polymorphicDiscriminator: Layer.type.polymorphicDiscriminator, modelProperties: { ...Layer.type.modelProperties, quality: { @@ -4653,12 +4689,9 @@ export const JpgLayer: coreClient.CompositeMapper = { }; export const PngLayer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.PngLayer", type: { name: "Composite", className: "PngLayer", - uberParent: "Layer", - polymorphicDiscriminator: Layer.type.polymorphicDiscriminator, modelProperties: { ...Layer.type.modelProperties } @@ -4878,69 +4911,110 @@ export const UtcClipTime: coreClient.CompositeMapper = { } }; -export const MediaService: coreClient.CompositeMapper = { +export const AccountFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MediaService", + className: "AccountFilter", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "MediaServiceIdentity" + className: "SystemData" } }, - systemData: { - serializedName: "systemData", + presentationTimeRange: { + serializedName: "properties.presentationTimeRange", type: { name: "Composite", - className: "SystemData" + className: "PresentationTimeRange" } }, - mediaServiceId: { - serializedName: "properties.mediaServiceId", - readOnly: true, + firstQuality: { + serializedName: "properties.firstQuality", type: { - name: "Uuid" + name: "Composite", + className: "FirstQuality" } }, - storageAccounts: { - serializedName: "properties.storageAccounts", + tracks: { + serializedName: "properties.tracks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccount" + className: "FilterTrackSelection" } } } + } + } + } +}; + +export const Asset: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Asset", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - storageAuthentication: { - serializedName: "properties.storageAuthentication", - nullable: true, + assetId: { + serializedName: "properties.assetId", + readOnly: true, + type: { + name: "Uuid" + } + }, + created: { + serializedName: "properties.created", + readOnly: true, + type: { + name: "DateTime" + } + }, + lastModified: { + serializedName: "properties.lastModified", + readOnly: true, + type: { + name: "DateTime" + } + }, + alternateId: { + serializedName: "properties.alternateId", type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "AccountEncryption" + name: "String" } }, - keyDelivery: { - serializedName: "properties.keyDelivery", + container: { + serializedName: "properties.container", type: { - name: "Composite", - className: "KeyDelivery" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - nullable: true, + storageAccountName: { + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + storageEncryptionFormat: { + serializedName: "properties.storageEncryptionFormat", + readOnly: true, type: { name: "String" } @@ -4949,12 +5023,12 @@ export const MediaService: coreClient.CompositeMapper = { } }; -export const LiveEvent: coreClient.CompositeMapper = { +export const AssetFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LiveEvent", + className: "AssetFilter", modelProperties: { - ...TrackedResource.type.modelProperties, + ...ProxyResource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -4962,88 +5036,104 @@ export const LiveEvent: coreClient.CompositeMapper = { className: "SystemData" } }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - input: { - serializedName: "properties.input", - type: { - name: "Composite", - className: "LiveEventInput" - } - }, - preview: { - serializedName: "properties.preview", + presentationTimeRange: { + serializedName: "properties.presentationTimeRange", type: { name: "Composite", - className: "LiveEventPreview" + className: "PresentationTimeRange" } }, - encoding: { - serializedName: "properties.encoding", + firstQuality: { + serializedName: "properties.firstQuality", type: { name: "Composite", - className: "LiveEventEncoding" + className: "FirstQuality" } }, - transcriptions: { - serializedName: "properties.transcriptions", + tracks: { + serializedName: "properties.tracks", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LiveEventTranscription" + className: "FilterTrackSelection" } } } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + } + } + } +}; + +export const ContentKeyPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContentKeyPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - resourceState: { - serializedName: "properties.resourceState", + policyId: { + serializedName: "properties.policyId", readOnly: true, type: { - name: "String" + name: "Uuid" } }, - crossSiteAccessPolicies: { - serializedName: "properties.crossSiteAccessPolicies", + created: { + serializedName: "properties.created", + readOnly: true, type: { - name: "Composite", - className: "CrossSiteAccessPolicies" + name: "DateTime" } }, - useStaticHostname: { - serializedName: "properties.useStaticHostname", + lastModified: { + serializedName: "properties.lastModified", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - hostnamePrefix: { - serializedName: "properties.hostnamePrefix", + description: { + serializedName: "properties.description", type: { name: "String" } }, - streamOptions: { - serializedName: "properties.streamOptions", + options: { + serializedName: "properties.options", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ContentKeyPolicyOption" } } } + } + } + } +}; + +export const Transform: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Transform", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, created: { serializedName: "properties.created", @@ -5052,23 +5142,41 @@ export const LiveEvent: coreClient.CompositeMapper = { name: "DateTime" } }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, lastModified: { serializedName: "properties.lastModified", readOnly: true, type: { name: "DateTime" } + }, + outputs: { + serializedName: "properties.outputs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TransformOutput" + } + } + } } } } }; -export const StreamingEndpoint: coreClient.CompositeMapper = { +export const Job: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StreamingEndpoint", + className: "Job", modelProperties: { - ...TrackedResource.type.modelProperties, + ...ProxyResource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -5076,111 +5184,77 @@ export const StreamingEndpoint: coreClient.CompositeMapper = { className: "SystemData" } }, - description: { - serializedName: "properties.description", + created: { + serializedName: "properties.created", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - scaleUnits: { - serializedName: "properties.scaleUnits", + state: { + serializedName: "properties.state", + readOnly: true, type: { - name: "Number" + name: "String" } }, - availabilitySetName: { - serializedName: "properties.availabilitySetName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - accessControl: { - serializedName: "properties.accessControl", + input: { + serializedName: "properties.input", type: { name: "Composite", - className: "StreamingEndpointAccessControl" + className: "JobInput" } }, - maxCacheAge: { - serializedName: "properties.maxCacheAge", + lastModified: { + serializedName: "properties.lastModified", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - customHostNames: { - serializedName: "properties.customHostNames", + outputs: { + serializedName: "properties.outputs", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "JobOutput" } } } }, - hostName: { - serializedName: "properties.hostName", - readOnly: true, - type: { - name: "String" - } - }, - cdnEnabled: { - serializedName: "properties.cdnEnabled", - type: { - name: "Boolean" - } - }, - cdnProvider: { - serializedName: "properties.cdnProvider", - type: { - name: "String" - } - }, - cdnProfile: { - serializedName: "properties.cdnProfile", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, + priority: { + serializedName: "properties.priority", type: { name: "String" } }, - crossSiteAccessPolicies: { - serializedName: "properties.crossSiteAccessPolicies", - type: { - name: "Composite", - className: "CrossSiteAccessPolicies" - } - }, - freeTrialEndTime: { - serializedName: "properties.freeTrialEndTime", - readOnly: true, + correlationData: { + serializedName: "properties.correlationData", type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - created: { - serializedName: "properties.created", + startTime: { + serializedName: "properties.startTime", readOnly: true, + nullable: true, type: { name: "DateTime" } }, - lastModified: { - serializedName: "properties.lastModified", + endTime: { + serializedName: "properties.endTime", readOnly: true, + nullable: true, type: { name: "DateTime" } @@ -5189,10 +5263,10 @@ export const StreamingEndpoint: coreClient.CompositeMapper = { } }; -export const AccountFilter: coreClient.CompositeMapper = { +export const StreamingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountFilter", + className: "StreamingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -5202,40 +5276,55 @@ export const AccountFilter: coreClient.CompositeMapper = { className: "SystemData" } }, - presentationTimeRange: { - serializedName: "properties.presentationTimeRange", + created: { + serializedName: "properties.created", + readOnly: true, + type: { + name: "DateTime" + } + }, + defaultContentKeyPolicyName: { + serializedName: "properties.defaultContentKeyPolicyName", + type: { + name: "String" + } + }, + envelopeEncryption: { + serializedName: "properties.envelopeEncryption", type: { name: "Composite", - className: "PresentationTimeRange" + className: "EnvelopeEncryption" } }, - firstQuality: { - serializedName: "properties.firstQuality", + commonEncryptionCenc: { + serializedName: "properties.commonEncryptionCenc", type: { name: "Composite", - className: "FirstQuality" + className: "CommonEncryptionCenc" } }, - tracks: { - serializedName: "properties.tracks", + commonEncryptionCbcs: { + serializedName: "properties.commonEncryptionCbcs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FilterTrackSelection" - } - } + name: "Composite", + className: "CommonEncryptionCbcs" + } + }, + noEncryption: { + serializedName: "properties.noEncryption", + type: { + name: "Composite", + className: "NoEncryption" } } } } }; -export const Asset: coreClient.CompositeMapper = { +export const StreamingLocator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Asset", + className: "StreamingLocator", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -5245,11 +5334,10 @@ export const Asset: coreClient.CompositeMapper = { className: "SystemData" } }, - assetId: { - serializedName: "properties.assetId", - readOnly: true, + assetName: { + serializedName: "properties.assetName", type: { - name: "Uuid" + name: "String" } }, created: { @@ -5259,52 +5347,73 @@ export const Asset: coreClient.CompositeMapper = { name: "DateTime" } }, - lastModified: { - serializedName: "properties.lastModified", - readOnly: true, + startTime: { + serializedName: "properties.startTime", type: { name: "DateTime" } }, - alternateId: { - serializedName: "properties.alternateId", + endTime: { + serializedName: "properties.endTime", type: { - name: "String" + name: "DateTime" } }, - description: { - serializedName: "properties.description", + streamingLocatorId: { + serializedName: "properties.streamingLocatorId", type: { - name: "String" + name: "Uuid" } }, - container: { - serializedName: "properties.container", + streamingPolicyName: { + serializedName: "properties.streamingPolicyName", type: { name: "String" } }, - storageAccountName: { - serializedName: "properties.storageAccountName", + defaultContentKeyPolicyName: { + serializedName: "properties.defaultContentKeyPolicyName", type: { name: "String" } }, - storageEncryptionFormat: { - serializedName: "properties.storageEncryptionFormat", - readOnly: true, + contentKeys: { + serializedName: "properties.contentKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StreamingLocatorContentKey" + } + } + } + }, + alternativeMediaId: { + serializedName: "properties.alternativeMediaId", type: { name: "String" } + }, + filters: { + serializedName: "properties.filters", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const AssetFilter: coreClient.CompositeMapper = { +export const LiveOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetFilter", + className: "LiveOutput", modelProperties: { ...ProxyResource.type.modelProperties, systemData: { @@ -5314,54 +5423,41 @@ export const AssetFilter: coreClient.CompositeMapper = { className: "SystemData" } }, - presentationTimeRange: { - serializedName: "properties.presentationTimeRange", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "PresentationTimeRange" + name: "String" } }, - firstQuality: { - serializedName: "properties.firstQuality", + assetName: { + serializedName: "properties.assetName", type: { - name: "Composite", - className: "FirstQuality" + name: "String" } }, - tracks: { - serializedName: "properties.tracks", + archiveWindowLength: { + serializedName: "properties.archiveWindowLength", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FilterTrackSelection" - } - } + name: "TimeSpan" } - } - } - } -}; - -export const ContentKeyPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContentKeyPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + }, + manifestName: { + serializedName: "properties.manifestName", + type: { + name: "String" + } + }, + hls: { + serializedName: "properties.hls", type: { name: "Composite", - className: "SystemData" + className: "Hls" } }, - policyId: { - serializedName: "properties.policyId", - readOnly: true, + outputSnapTime: { + serializedName: "properties.outputSnapTime", type: { - name: "Uuid" + name: "Number" } }, created: { @@ -5378,34 +5474,37 @@ export const ContentKeyPolicy: coreClient.CompositeMapper = { name: "DateTime" } }, - description: { - serializedName: "properties.description", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - options: { - serializedName: "properties.options", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContentKeyPolicyOption" - } - } + name: "String" } } } } }; -export const Transform: coreClient.CompositeMapper = { +export const MediaService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Transform", + className: "MediaService", modelProperties: { - ...ProxyResource.type.modelProperties, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "MediaServiceIdentity" + } + }, systemData: { serializedName: "systemData", type: { @@ -5413,48 +5512,77 @@ export const Transform: coreClient.CompositeMapper = { className: "SystemData" } }, - created: { - serializedName: "properties.created", + mediaServiceId: { + serializedName: "properties.mediaServiceId", readOnly: true, type: { - name: "DateTime" + name: "Uuid" } }, - description: { - serializedName: "properties.description", + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccount" + } + } + } + }, + storageAuthentication: { + serializedName: "properties.storageAuthentication", + nullable: true, type: { name: "String" } }, - lastModified: { - serializedName: "properties.lastModified", + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "AccountEncryption" + } + }, + keyDelivery: { + serializedName: "properties.keyDelivery", + type: { + name: "Composite", + className: "KeyDelivery" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - outputs: { - serializedName: "properties.outputs", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TransformOutput" - } - } + name: "any" } } } } }; -export const Job: coreClient.CompositeMapper = { +export const LiveEvent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Job", + className: "LiveEvent", modelProperties: { - ...ProxyResource.type.modelProperties, + ...TrackedResource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -5462,20 +5590,6 @@ export const Job: coreClient.CompositeMapper = { className: "SystemData" } }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - readOnly: true, - type: { - name: "String" - } - }, description: { serializedName: "properties.description", type: { @@ -5486,125 +5600,103 @@ export const Job: coreClient.CompositeMapper = { serializedName: "properties.input", type: { name: "Composite", - className: "JobInput" + className: "LiveEventInput" } }, - lastModified: { - serializedName: "properties.lastModified", - readOnly: true, + preview: { + serializedName: "properties.preview", type: { - name: "DateTime" + name: "Composite", + className: "LiveEventPreview" } }, - outputs: { - serializedName: "properties.outputs", + encoding: { + serializedName: "properties.encoding", + type: { + name: "Composite", + className: "LiveEventEncoding" + } + }, + transcriptions: { + serializedName: "properties.transcriptions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JobOutput" + className: "LiveEventTranscription" } } } }, - priority: { - serializedName: "properties.priority", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - correlationData: { - serializedName: "properties.correlationData", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - startTime: { - serializedName: "properties.startTime", + resourceState: { + serializedName: "properties.resourceState", readOnly: true, - nullable: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - nullable: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const StreamingPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StreamingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + crossSiteAccessPolicies: { + serializedName: "properties.crossSiteAccessPolicies", type: { name: "Composite", - className: "SystemData" - } - }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" + className: "CrossSiteAccessPolicies" } }, - defaultContentKeyPolicyName: { - serializedName: "properties.defaultContentKeyPolicyName", + useStaticHostname: { + serializedName: "properties.useStaticHostname", type: { - name: "String" + name: "Boolean" } - }, - envelopeEncryption: { - serializedName: "properties.envelopeEncryption", + }, + hostnamePrefix: { + serializedName: "properties.hostnamePrefix", type: { - name: "Composite", - className: "EnvelopeEncryption" + name: "String" } }, - commonEncryptionCenc: { - serializedName: "properties.commonEncryptionCenc", + streamOptions: { + serializedName: "properties.streamOptions", type: { - name: "Composite", - className: "CommonEncryptionCenc" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - commonEncryptionCbcs: { - serializedName: "properties.commonEncryptionCbcs", + created: { + serializedName: "properties.created", + readOnly: true, type: { - name: "Composite", - className: "CommonEncryptionCbcs" + name: "DateTime" } }, - noEncryption: { - serializedName: "properties.noEncryption", + lastModified: { + serializedName: "properties.lastModified", + readOnly: true, type: { - name: "Composite", - className: "NoEncryption" + name: "DateTime" } } } } }; -export const StreamingLocator: coreClient.CompositeMapper = { +export const StreamingEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StreamingLocator", + className: "StreamingEndpoint", modelProperties: { - ...ProxyResource.type.modelProperties, + ...TrackedResource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -5612,130 +5704,99 @@ export const StreamingLocator: coreClient.CompositeMapper = { className: "SystemData" } }, - assetName: { - serializedName: "properties.assetName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "properties.endTime", + scaleUnits: { + serializedName: "properties.scaleUnits", type: { - name: "DateTime" + name: "Number" } }, - streamingLocatorId: { - serializedName: "properties.streamingLocatorId", + availabilitySetName: { + serializedName: "properties.availabilitySetName", type: { - name: "Uuid" + name: "String" } }, - streamingPolicyName: { - serializedName: "properties.streamingPolicyName", + accessControl: { + serializedName: "properties.accessControl", type: { - name: "String" + name: "Composite", + className: "StreamingEndpointAccessControl" } }, - defaultContentKeyPolicyName: { - serializedName: "properties.defaultContentKeyPolicyName", + maxCacheAge: { + serializedName: "properties.maxCacheAge", type: { - name: "String" + name: "Number" } }, - contentKeys: { - serializedName: "properties.contentKeys", + customHostNames: { + serializedName: "properties.customHostNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "StreamingLocatorContentKey" + name: "String" } } } }, - alternativeMediaId: { - serializedName: "properties.alternativeMediaId", + hostName: { + serializedName: "properties.hostName", + readOnly: true, type: { name: "String" } }, - filters: { - serializedName: "properties.filters", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const LiveOutput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LiveOutput", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + cdnEnabled: { + serializedName: "properties.cdnEnabled", type: { - name: "Composite", - className: "SystemData" + name: "Boolean" } }, - description: { - serializedName: "properties.description", + cdnProvider: { + serializedName: "properties.cdnProvider", type: { name: "String" } }, - assetName: { - serializedName: "properties.assetName", + cdnProfile: { + serializedName: "properties.cdnProfile", type: { name: "String" } }, - archiveWindowLength: { - serializedName: "properties.archiveWindowLength", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "TimeSpan" + name: "String" } }, - manifestName: { - serializedName: "properties.manifestName", + resourceState: { + serializedName: "properties.resourceState", + readOnly: true, type: { name: "String" } }, - hls: { - serializedName: "properties.hls", + crossSiteAccessPolicies: { + serializedName: "properties.crossSiteAccessPolicies", type: { name: "Composite", - className: "Hls" + className: "CrossSiteAccessPolicies" } }, - outputSnapTime: { - serializedName: "properties.outputSnapTime", + freeTrialEndTime: { + serializedName: "properties.freeTrialEndTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, created: { @@ -5751,20 +5812,6 @@ export const LiveOutput: coreClient.CompositeMapper = { type: { name: "DateTime" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, - type: { - name: "String" - } } } } @@ -5928,12 +5975,6 @@ export const H264Video: coreClient.CompositeMapper = { polymorphicDiscriminator: Codec.type.polymorphicDiscriminator, modelProperties: { ...Video.type.modelProperties, - sceneChangeDetection: { - serializedName: "sceneChangeDetection", - type: { - name: "Boolean" - } - }, complexity: { serializedName: "complexity", type: { @@ -5951,18 +5992,27 @@ export const H264Video: coreClient.CompositeMapper = { } } } + }, + rateControlMode: { + serializedName: "rateControlMode", + type: { + name: "String" + } + }, + sceneChangeDetection: { + serializedName: "sceneChangeDetection", + type: { + name: "Boolean" + } } } } }; export const H265Layer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.H265Layer", type: { name: "Composite", className: "H265Layer", - uberParent: "Layer", - polymorphicDiscriminator: Layer.type.polymorphicDiscriminator, modelProperties: { ...H265VideoLayer.type.modelProperties, profile: { @@ -5983,6 +6033,12 @@ export const H265Layer: coreClient.CompositeMapper = { name: "TimeSpan" } }, + crf: { + serializedName: "crf", + type: { + name: "Number" + } + }, referenceFrames: { serializedName: "referenceFrames", type: { @@ -5994,12 +6050,9 @@ export const H265Layer: coreClient.CompositeMapper = { }; export const H264Layer: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Media.H264Layer", type: { name: "Composite", className: "H264Layer", - uberParent: "Layer", - polymorphicDiscriminator: Layer.type.polymorphicDiscriminator, modelProperties: { ...VideoLayer.type.modelProperties, profile: { @@ -6020,6 +6073,12 @@ export const H264Layer: coreClient.CompositeMapper = { name: "TimeSpan" } }, + crf: { + serializedName: "crf", + type: { + name: "Number" + } + }, referenceFrames: { serializedName: "referenceFrames", type: { @@ -6250,6 +6309,87 @@ export const PngImage: coreClient.CompositeMapper = { } }; +export const MediaservicesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MediaservicesCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const MediaservicesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MediaservicesUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const MediaServiceOperationResultsGetHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MediaServiceOperationResultsGetHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { ContentKeyPolicyConfiguration: ContentKeyPolicyConfiguration, ContentKeyPolicyRestriction: ContentKeyPolicyRestriction, @@ -6259,7 +6399,6 @@ export let discriminators = { ContentKeyPolicyPlayReadyContentKeyLocation: ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyRestrictionTokenKey: ContentKeyPolicyRestrictionTokenKey, Codec: Codec, - Layer: Layer, TrackDescriptor: TrackDescriptor, InputDefinition: InputDefinition, Overlay: Overlay, @@ -6290,10 +6429,6 @@ export let discriminators = { "Codec.#Microsoft.Media.Video": Video, "Codec.#Microsoft.Media.CopyVideo": CopyVideo, "Codec.#Microsoft.Media.CopyAudio": CopyAudio, - "Layer.#Microsoft.Media.H265VideoLayer": H265VideoLayer, - "Layer.#Microsoft.Media.VideoLayer": VideoLayer, - "Layer.#Microsoft.Media.JpgLayer": JpgLayer, - "Layer.#Microsoft.Media.PngLayer": PngLayer, "TrackDescriptor.#Microsoft.Media.AudioTrackDescriptor": AudioTrackDescriptor, "TrackDescriptor.#Microsoft.Media.VideoTrackDescriptor": VideoTrackDescriptor, "InputDefinition.#Microsoft.Media.FromAllInputFile": FromAllInputFile, @@ -6312,8 +6447,6 @@ export let discriminators = { "Codec.#Microsoft.Media.H265Video": H265Video, "Codec.#Microsoft.Media.Image": Image, "Codec.#Microsoft.Media.H264Video": H264Video, - "Layer.#Microsoft.Media.H265Layer": H265Layer, - "Layer.#Microsoft.Media.H264Layer": H264Layer, "TrackDescriptor.#Microsoft.Media.SelectAudioTrackByAttribute": SelectAudioTrackByAttribute, "TrackDescriptor.#Microsoft.Media.SelectAudioTrackById": SelectAudioTrackById, "TrackDescriptor.#Microsoft.Media.SelectVideoTrackByAttribute": SelectVideoTrackByAttribute, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts index f91dfc906d06..23183016a740 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts @@ -12,13 +12,13 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + AccountFilter as AccountFilterMapper, MediaService as MediaServiceMapper, MediaServiceUpdate as MediaServiceUpdateMapper, SyncStorageKeysInput as SyncStorageKeysInputMapper, ListEdgePoliciesInput as ListEdgePoliciesInputMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper, - AccountFilter as AccountFilterMapper, Asset as AssetMapper, ListContainerSasInput as ListContainerSasInputMapper, AssetFilter as AssetFilterMapper, @@ -58,18 +58,6 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-06-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -103,6 +91,29 @@ export const accountName: OperationURLParameter = { } }; +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-11-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const filterName: OperationURLParameter = { + parameterPath: "filterName", + mapper: { + serializedName: "filterName", + required: true, + type: { + name: "String" + } + } +}; + export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { @@ -117,34 +128,39 @@ export const contentType: OperationParameter = { export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: MediaServiceMapper + mapper: AccountFilterMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: MediaServiceUpdateMapper + mapper: MediaServiceMapper }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: SyncStorageKeysInputMapper + mapper: MediaServiceUpdateMapper }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ListEdgePoliciesInputMapper + mapper: SyncStorageKeysInputMapper }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: ListEdgePoliciesInputMapper }; export const name: OperationURLParameter = { @@ -158,12 +174,12 @@ export const name: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters5: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: CheckNameAvailabilityInputMapper }; @@ -179,10 +195,10 @@ export const locationName: OperationURLParameter = { } }; -export const filterName: OperationURLParameter = { - parameterPath: "filterName", +export const operationId: OperationURLParameter = { + parameterPath: "operationId", mapper: { - serializedName: "filterName", + serializedName: "operationId", required: true, type: { name: "String" @@ -190,11 +206,6 @@ export const filterName: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: AccountFilterMapper -}; - export const filter: OperationQueryParameter = { parameterPath: ["options", "filter"], mapper: { diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts b/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts index 371a85ebaccd..f7e6b0066517 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts @@ -278,7 +278,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -325,7 +325,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts index 2e1437cd59ee..9c8dbf87389d 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts @@ -6,12 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./accountFilters"; export * from "./operations"; export * from "./mediaservices"; export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./locations"; -export * from "./accountFilters"; +export * from "./mediaServiceOperationStatuses"; +export * from "./mediaServiceOperationResults"; export * from "./assets"; export * from "./assetFilters"; export * from "./contentKeyPolicies"; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts b/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts index 00752a99e901..f1288ac3c773 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts @@ -61,7 +61,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationResults.ts b/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationResults.ts new file mode 100644 index 000000000000..1fedc8a04ff6 --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationResults.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { MediaServiceOperationResults } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMediaServices } from "../azureMediaServices"; +import { + MediaServiceOperationResultsGetOptionalParams, + MediaServiceOperationResultsGetResponse +} from "../models"; + +/** Class containing MediaServiceOperationResults operations. */ +export class MediaServiceOperationResultsImpl + implements MediaServiceOperationResults { + private readonly client: AzureMediaServices; + + /** + * Initialize a new instance of the class MediaServiceOperationResults class. + * @param client Reference to the service client + */ + constructor(client: AzureMediaServices) { + this.client = client; + } + + /** + * Get media service operation result. + * @param locationName + * @param operationId Operation Id. + * @param options The options parameters. + */ + get( + locationName: string, + operationId: string, + options?: MediaServiceOperationResultsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, operationId, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServiceOperationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MediaService + }, + 202: { + headersMapper: Mappers.MediaServiceOperationResultsGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.operationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationStatuses.ts b/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationStatuses.ts new file mode 100644 index 000000000000..17c8eb8adf7f --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operations/mediaServiceOperationStatuses.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { MediaServiceOperationStatuses } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMediaServices } from "../azureMediaServices"; +import { + MediaServiceOperationStatusesGetOptionalParams, + MediaServiceOperationStatusesGetResponse +} from "../models"; + +/** Class containing MediaServiceOperationStatuses operations. */ +export class MediaServiceOperationStatusesImpl + implements MediaServiceOperationStatuses { + private readonly client: AzureMediaServices; + + /** + * Initialize a new instance of the class MediaServiceOperationStatuses class. + * @param client Reference to the service client + */ + constructor(client: AzureMediaServices) { + this.client = client; + } + + /** + * Get media service operation status. + * @param locationName + * @param operationId Operation ID. + * @param options The options parameters. + */ + get( + locationName: string, + operationId: string, + options?: MediaServiceOperationStatusesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { locationName, operationId, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/mediaServiceOperationStatuses/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MediaServiceOperationStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.locationName, + Parameters.operationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts index 527bca6503d7..095d8034f3d9 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts @@ -12,6 +12,8 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureMediaServices } from "../azureMediaServices"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; import { MediaService, MediaservicesListNextOptionalParams, @@ -181,16 +183,87 @@ export class MediaservicesImpl implements Mediaservices { * @param parameters The request parameters * @param options The options parameters. */ - createOrUpdate( + async beginCreateOrUpdate( resourceGroupName: string, accountName: string, parameters: MediaService, options?: MediaservicesCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + MediaservicesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, accountName, parameters, options }, createOrUpdateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a Media Services account + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param parameters The request parameters + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + accountName: string, + parameters: MediaService, + options?: MediaservicesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + accountName, + parameters, + options + ); + return poller.pollUntilDone(); } /** @@ -217,16 +290,87 @@ export class MediaservicesImpl implements Mediaservices { * @param parameters The request parameters * @param options The options parameters. */ - update( + async beginUpdate( resourceGroupName: string, accountName: string, parameters: MediaServiceUpdate, options?: MediaservicesUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + MediaservicesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, accountName, parameters, options }, updateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates an existing Media Services account + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param parameters The request parameters + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + accountName: string, + parameters: MediaServiceUpdate, + options?: MediaservicesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + accountName, + parameters, + options + ); + return poller.pollUntilDone(); } /** @@ -364,16 +508,26 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.MediaService + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.MediaService + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -412,13 +566,26 @@ const updateOperationSpec: coreClient.OperationSpec = { httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.MediaService + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesUpdateHeaders + }, + 201: { + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesUpdateHeaders + }, + 202: { + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesUpdateHeaders + }, + 204: { + bodyMapper: Mappers.MediaService, + headersMapper: Mappers.MediaservicesUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -440,7 +607,7 @@ const syncStorageKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -464,7 +631,7 @@ const listEdgePoliciesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts index 41d258a56d16..b6a33bcfd7cb 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts @@ -171,7 +171,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/index.ts b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/index.ts index 2e1437cd59ee..9c8dbf87389d 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/index.ts @@ -6,12 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./accountFilters"; export * from "./operations"; export * from "./mediaservices"; export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./locations"; -export * from "./accountFilters"; +export * from "./mediaServiceOperationStatuses"; +export * from "./mediaServiceOperationResults"; export * from "./assets"; export * from "./assetFilters"; export * from "./contentKeyPolicies"; diff --git a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationResults.ts b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationResults.ts new file mode 100644 index 000000000000..fc4d2a046932 --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationResults.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + MediaServiceOperationResultsGetOptionalParams, + MediaServiceOperationResultsGetResponse +} from "../models"; + +/** Interface representing a MediaServiceOperationResults. */ +export interface MediaServiceOperationResults { + /** + * Get media service operation result. + * @param locationName + * @param operationId Operation Id. + * @param options The options parameters. + */ + get( + locationName: string, + operationId: string, + options?: MediaServiceOperationResultsGetOptionalParams + ): Promise; +} diff --git a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationStatuses.ts b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationStatuses.ts new file mode 100644 index 000000000000..3eb64ec318b1 --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaServiceOperationStatuses.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + MediaServiceOperationStatusesGetOptionalParams, + MediaServiceOperationStatusesGetResponse +} from "../models"; + +/** Interface representing a MediaServiceOperationStatuses. */ +export interface MediaServiceOperationStatuses { + /** + * Get media service operation status. + * @param locationName + * @param operationId Operation ID. + * @param options The options parameters. + */ + get( + locationName: string, + operationId: string, + options?: MediaServiceOperationStatusesGetOptionalParams + ): Promise; +} diff --git a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaservices.ts b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaservices.ts index 2e9a6601680b..54bf6010b907 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaservices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operationsInterfaces/mediaservices.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; import { MediaService, MediaservicesListOptionalParams, @@ -63,7 +64,25 @@ export interface Mediaservices { * @param parameters The request parameters * @param options The options parameters. */ - createOrUpdate( + beginCreateOrUpdate( + resourceGroupName: string, + accountName: string, + parameters: MediaService, + options?: MediaservicesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + MediaservicesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a Media Services account + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param parameters The request parameters + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( resourceGroupName: string, accountName: string, parameters: MediaService, @@ -87,7 +106,25 @@ export interface Mediaservices { * @param parameters The request parameters * @param options The options parameters. */ - update( + beginUpdate( + resourceGroupName: string, + accountName: string, + parameters: MediaServiceUpdate, + options?: MediaservicesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + MediaservicesUpdateResponse + > + >; + /** + * Updates an existing Media Services account + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param parameters The request parameters + * @param options The options parameters. + */ + beginUpdateAndWait( resourceGroupName: string, accountName: string, parameters: MediaServiceUpdate, diff --git a/sdk/mediaservices/arm-mediaservices/test/sampleTest.ts b/sdk/mediaservices/arm-mediaservices/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/mediaservices/arm-mediaservices/tsconfig.json b/sdk/mediaservices/arm-mediaservices/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/mediaservices/arm-mediaservices/tsconfig.json +++ b/sdk/mediaservices/arm-mediaservices/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file