diff --git a/sdk/mediaservices/arm-mediaservices/README.md b/sdk/mediaservices/arm-mediaservices/README.md
index ab197cd0e915..4f0d31548ef1 100644
--- a/sdk/mediaservices/arm-mediaservices/README.md
+++ b/sdk/mediaservices/arm-mediaservices/README.md
@@ -1,93 +1,97 @@
## Azure AzureMediaServices SDK for JavaScript
-This package contains an isomorphic SDK for AzureMediaServices.
+This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureMediaServices.
### Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+You must have an [Azure subscription](https://azure.microsoft.com/free/).
+
+### How to install
+
+To use this SDK in your project, you will need to install two packages.
+- `@azure/arm-mediaservices` that contains the client.
+- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+
+Install both packages using the below command:
```bash
-npm install @azure/arm-mediaservices
+npm install --save @azure/arm-mediaservices @azure/identity
```
+> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
+If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
### How to use
-#### nodejs - client creation and list accountFilters as an example written in TypeScript.
+- If you are writing a client side browser application,
+ - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
+ - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
+- If you are writing a server side application,
+ - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
+ - Complete the set up steps required by the credential if any.
+ - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
-##### Install @azure/ms-rest-nodeauth
-
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
-```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
-```
+In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
+Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
##### Sample code
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
+const { DefaultAzureCredential } = require("@azure/identity");
const { AzureMediaServices } = require("@azure/arm-mediaservices");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new AzureMediaServices(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const accountName = "testaccountName";
- client.accountFilters.list(resourceGroupName, accountName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
+// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
+// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
+const creds = new DefaultAzureCredential();
+const client = new AzureMediaServices(creds, subscriptionId);
+client.operations.list().then((result) => {
+ console.log("The result is:");
+ console.log(result);
}).catch((err) => {
+ console.log("An error occurred:");
console.error(err);
});
```
-#### browser - Authentication, client creation and list accountFilters as an example written in JavaScript.
+#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
-
-```bash
-npm install @azure/ms-rest-browserauth
-```
+In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
+ - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
+ - Note down the client Id from the previous step and use it in the browser sample below.
##### Sample code
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
- index.html
+
```html
@azure/arm-mediaservices sample
-
-
+
diff --git a/sdk/mediaservices/arm-mediaservices/package.json b/sdk/mediaservices/arm-mediaservices/package.json
index ee22ec05d8f3..5a6963c37217 100644
--- a/sdk/mediaservices/arm-mediaservices/package.json
+++ b/sdk/mediaservices/arm-mediaservices/package.json
@@ -4,8 +4,9 @@
"description": "AzureMediaServices Library with typescript type definitions for node.js and browser.",
"version": "8.1.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
+ "@azure/ms-rest-azure-js": "^2.1.0",
+ "@azure/ms-rest-js": "^2.2.0",
+ "@azure/core-auth": "^1.1.4",
"tslib": "^1.10.0"
},
"keywords": [
@@ -20,13 +21,13 @@
"module": "./esm/azureMediaServices.js",
"types": "./esm/azureMediaServices.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
+ "typescript": "^3.6.0",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/mediaservices/arm-mediaservices",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mediaservices/arm-mediaservices",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts
index a901bd17fb3b..a4bfd9cd2cd7 100644
--- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts
@@ -8,6 +8,7 @@
*/
import * as msRest from "@azure/ms-rest-js";
+import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
@@ -16,17 +17,15 @@ import { AzureMediaServicesContext } from "./azureMediaServicesContext";
class AzureMediaServices extends AzureMediaServicesContext {
// Operation groups
- accountFilters: operations.AccountFilters;
operations: operations.Operations;
mediaservices: operations.Mediaservices;
privateLinkResources: operations.PrivateLinkResources;
privateEndpointConnections: operations.PrivateEndpointConnections;
locations: operations.Locations;
+ accountFilters: operations.AccountFilters;
assets: operations.Assets;
assetFilters: operations.AssetFilters;
contentKeyPolicies: operations.ContentKeyPolicies;
- transforms: operations.Transforms;
- jobs: operations.Jobs;
streamingPolicies: operations.StreamingPolicies;
streamingLocators: operations.StreamingLocators;
liveEvents: operations.LiveEvents;
@@ -35,23 +34,26 @@ class AzureMediaServices extends AzureMediaServicesContext {
/**
* Initializes a new instance of the AzureMediaServices class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The unique identifier for a Microsoft Azure subscription.
* @param [options] The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
super(credentials, subscriptionId, options);
- this.accountFilters = new operations.AccountFilters(this);
this.operations = new operations.Operations(this);
this.mediaservices = new operations.Mediaservices(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.locations = new operations.Locations(this);
+ this.accountFilters = new operations.AccountFilters(this);
this.assets = new operations.Assets(this);
this.assetFilters = new operations.AssetFilters(this);
this.contentKeyPolicies = new operations.ContentKeyPolicies(this);
- this.transforms = new operations.Transforms(this);
- this.jobs = new operations.Jobs(this);
this.streamingPolicies = new operations.StreamingPolicies(this);
this.streamingLocators = new operations.StreamingLocators(this);
this.liveEvents = new operations.LiveEvents(this);
diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts
index 02385a759766..530923709bbf 100644
--- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts
@@ -10,22 +10,28 @@
import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
+import { TokenCredential } from "@azure/core-auth";
const packageName = "@azure/arm-mediaservices";
const packageVersion = "8.1.0";
export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
+ credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;
apiVersion?: string;
/**
* Initializes a new instance of the AzureMediaServices class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The unique identifier for a Microsoft Azure subscription.
* @param [options] The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMediaServicesOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
@@ -43,7 +49,7 @@ export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient {
super(credentials, options);
- this.apiVersion = '2020-05-01';
+ this.apiVersion = '2021-06-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts
index d60c29f2effc..3bbb5eee18df 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts
@@ -8,27 +8,18 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AccountFilterCollection,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -55,49 +46,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -111,29 +74,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts
index 697cf82d0937..351d4878c113 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts
@@ -8,27 +8,18 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
AssetFilterCollection,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -55,49 +46,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -111,29 +74,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts
index fb80963b65ee..7d95ad11b235 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts
@@ -8,30 +8,21 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetCollection,
AssetContainerSas,
AssetFileEncryptionMetadata,
AssetFilter,
AssetStreamingLocator,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -58,49 +49,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
ListContainerSasInput,
ListStreamingLocatorsResponse,
LiveEvent,
@@ -116,29 +79,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StorageEncryptedAssetDecryptionData,
StreamingEndpoint,
@@ -152,17 +101,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts
index 942f779596d7..290ccd54e5c7 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -56,49 +47,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -112,29 +75,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -147,17 +96,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/index.ts b/sdk/mediaservices/arm-mediaservices/src/models/index.ts
index b95d6945fcc0..898d05f3c1ef 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/index.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/index.ts
@@ -11,233 +11,6 @@ import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
-/**
- * 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;
-}
-
-/**
- * The class to specify one track property condition.
- */
-export interface FilterTrackPropertyCondition {
- /**
- * The track property type. Possible values include: 'Unknown', 'Type', 'Name', 'Language',
- * 'FourCC', 'Bitrate'
- */
- property: FilterTrackPropertyType;
- /**
- * The track property value.
- */
- value: string;
- /**
- * The track property condition operation. Possible values include: 'Equal', 'NotEqual'
- */
- operation: FilterTrackPropertyCompareOperation;
-}
-
-/**
- * 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[];
-}
-
-/**
- * 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. Possible values include: 'User',
- * 'Application', 'ManagedIdentity', 'Key'
- */
- 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. Possible values include: 'User',
- * 'Application', 'ManagedIdentity', 'Key'
- */
- 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
- * @summary Resource
- */
-export interface Resource extends BaseResource {
- /**
- * 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;
-}
-
-/**
- * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
- * and a location
- * @summary Proxy Resource
- */
-export interface ProxyResource extends Resource {
-}
-
-/**
- * An Account Filter.
- */
-export interface AccountFilter extends ProxyResource {
- /**
- * The presentation time range.
- */
- presentationTimeRange?: PresentationTimeRange;
- /**
- * The first quality.
- */
- firstQuality?: FirstQuality;
- /**
- * The tracks selection conditions.
- */
- tracks?: FilterTrackSelection[];
- /**
- * 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;
-}
-
-/**
- * Information about an error.
- */
-export interface ODataError {
- /**
- * A language-independent error name.
- */
- code?: string;
- /**
- * The error message.
- */
- message?: string;
- /**
- * The target of the error (for example, the name of the property in error).
- */
- target?: string;
- /**
- * The error details.
- */
- details?: ODataError[];
-}
-
-/**
- * The API error.
- */
-export interface ApiError {
- /**
- * The error properties.
- */
- error?: ODataError;
-}
-
-/**
- * The resource model definition for an Azure Resource Manager tracked top level resource which has
- * 'tags' and a 'location'
- * @summary Tracked Resource
- */
-export interface TrackedResource extends Resource {
- /**
- * Resource tags.
- */
- tags?: { [propertyName: string]: string };
- /**
- * The geo-location where the resource lives
- */
- location: string;
-}
-
-/**
- * The resource model definition for an Azure Resource Manager resource with an etag.
- * @summary Entity Resource
- */
-export interface AzureEntityResource extends Resource {
- /**
- * Resource Etag.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly etag?: string;
-}
-
-/**
- * A resource provider.
- */
-export interface Provider {
- /**
- * The provider name.
- */
- providerName: string;
-}
-
/**
* Operation details.
*/
@@ -324,6 +97,26 @@ export interface MetricSpecification {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly dimensions?: MetricDimension[];
+ /**
+ * Indicates whether regional MDM account is enabled.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly enableRegionalMdmAccount?: boolean;
+ /**
+ * The source MDM account.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly sourceMdmAccount?: string;
+ /**
+ * The source MDM namespace.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly sourceMdmNamespace?: string;
+ /**
+ * The supported time grain types.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly supportedTimeGrainTypes?: string[];
}
/**
@@ -394,13 +187,14 @@ export interface Operation {
* Operation properties format.
*/
properties?: Properties;
-}
-
-/**
- * An interface representing Location.
- */
-export interface Location {
- name: string;
+ /**
+ * Whether the operation applies to data-plane.
+ */
+ isDataAction?: boolean;
+ /**
+ * Indicates the action type. Possible values include: 'Internal'
+ */
+ actionType?: ActionType;
}
/**
@@ -421,6 +215,21 @@ export interface EntityNameAvailabilityCheckOutput {
message?: string;
}
+/**
+ * An interface representing ResourceIdentity.
+ */
+export interface ResourceIdentity {
+ /**
+ * The user assigned managed identity's ARM ID to use when accessing a resource.
+ */
+ userAssignedIdentity?: string;
+ /**
+ * Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned
+ * Managed Identity.
+ */
+ useSystemAssignedIdentity: boolean;
+}
+
/**
* The storage account details.
*/
@@ -436,6 +245,15 @@ export interface StorageAccount {
* The type of the storage account. Possible values include: 'Primary', 'Secondary'
*/
type: StorageAccountType;
+ /**
+ * The storage account identity.
+ */
+ identity?: ResourceIdentity;
+ /**
+ * The current status of the storage account mapping.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly status?: string;
}
/**
@@ -478,26 +296,152 @@ export interface AccountEncryption {
* The properties of the key used to encrypt the account.
*/
keyVaultProperties?: KeyVaultProperties;
+ /**
+ * The Key Vault identity.
+ */
+ identity?: ResourceIdentity;
+ /**
+ * The current status of the Key Vault mapping.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly status?: string;
}
/**
- * An interface representing MediaServiceIdentity.
+ * An interface representing AccessControl.
*/
-export interface MediaServiceIdentity {
+export interface AccessControl {
/**
- * The identity type. Possible values include: 'SystemAssigned', 'None'
+ * The behavior for IP access control in Key Delivery. Possible values include: 'Allow', 'Deny'
*/
- type: ManagedIdentityType;
+ defaultAction?: DefaultAction;
/**
- * The Principal ID of the identity.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The IP allow list for access control in Key Delivery. If the default action is set to 'Allow',
+ * the IP allow list must be empty.
*/
- readonly principalId?: string;
+ ipAllowList?: string[];
+}
+
+/**
+ * An interface representing KeyDelivery.
+ */
+export interface KeyDelivery {
+ /**
+ * The access control properties for Key Delivery.
+ */
+ accessControl?: AccessControl;
+}
+
+/**
+ * An interface representing UserAssignedManagedIdentity.
+ */
+export interface UserAssignedManagedIdentity {
+ /**
+ * The client ID.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly clientId?: string;
+ /**
+ * The principal ID.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly principalId?: string;
+}
+
+/**
+ * An interface representing MediaServiceIdentity.
+ */
+export interface MediaServiceIdentity {
+ /**
+ * The identity type.
+ */
+ type: string;
+ /**
+ * The Principal ID of the identity.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly principalId?: string;
/**
* The Tenant ID of the identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
+ /**
+ * The user assigned managed identities.
+ */
+ userAssignedIdentities?: { [propertyName: string]: UserAssignedManagedIdentity };
+}
+
+/**
+ * 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. Possible values include: 'User',
+ * 'Application', 'ManagedIdentity', 'Key'
+ */
+ 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. Possible values include: 'User',
+ * 'Application', 'ManagedIdentity', 'Key'
+ */
+ 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
+ * @summary Resource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * 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;
+}
+
+/**
+ * The resource model definition for an Azure Resource Manager tracked top level resource which has
+ * 'tags' and a 'location'
+ * @summary Tracked Resource
+ */
+export interface TrackedResource extends Resource {
+ /**
+ * Resource tags.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * The geo-location where the resource lives
+ */
+ location: string;
}
/**
@@ -521,6 +465,15 @@ export interface MediaService extends TrackedResource {
* 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. Possible values include: 'Enabled', 'Disabled'
+ */
+ publicNetworkAccess?: PublicNetworkAccess;
/**
* The Managed Identity for the Media Services account.
*/
@@ -532,6 +485,46 @@ export interface MediaService extends TrackedResource {
readonly systemData?: SystemData;
}
+/**
+ * A Media Services account update.
+ */
+export interface MediaServiceUpdate {
+ /**
+ * Resource tags.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * 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[];
+ /**
+ * Possible values include: 'System', 'ManagedIdentity'
+ */
+ 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. Possible values include: 'Enabled', 'Disabled'
+ */
+ publicNetworkAccess?: PublicNetworkAccess;
+ /**
+ * The Managed Identity for the Media Services account.
+ */
+ identity?: MediaServiceIdentity;
+}
+
/**
* An interface representing ListEdgePoliciesInput.
*/
@@ -590,6 +583,16 @@ export interface EdgePolicies {
usageDataCollectionPolicy?: EdgeUsageDataCollectionPolicy;
}
+/**
+ * A collection of Operation items.
+ */
+export interface OperationCollection {
+ /**
+ * A collection of Operation items.
+ */
+ value?: Operation[];
+}
+
/**
* The input to the check name availability request.
*/
@@ -604,6 +607,85 @@ export interface CheckNameAvailabilityInput {
type?: string;
}
+/**
+ * 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?: any;
+}
+
+/**
+ * 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[];
+}
+
+/**
+ * Common error response for all Azure Resource Manager APIs to return error details for failed
+ * operations. (This also follows the OData error response format.).
+ * @summary Error response
+ */
+export interface ErrorResponse {
+ /**
+ * The error object.
+ */
+ error?: ErrorDetail;
+}
+
+/**
+ * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
+ * and a location
+ * @summary Proxy Resource
+ */
+export interface ProxyResource extends Resource {
+}
+
+/**
+ * The resource model definition for an Azure Resource Manager resource with an etag.
+ * @summary Entity Resource
+ */
+export interface AzureEntityResource extends Resource {
+ /**
+ * Resource Etag.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly etag?: string;
+}
+
/**
* A collection of information about the state of the connection between service consumer and
* provider.
@@ -696,54 +778,147 @@ export interface PrivateLinkResourceListResult {
}
/**
- * The Asset Storage container SAS URLs.
+ * The presentation time range, this is asset related and not recommended for Account Filter.
*/
-export interface AssetContainerSas {
+export interface PresentationTimeRange {
/**
- * The list of Asset container SAS URLs.
+ * The absolute start time boundary.
*/
- assetContainerSasUrls?: string[];
-}
-
-/**
- * The Asset File Storage encryption metadata.
- */
-export interface AssetFileEncryptionMetadata {
+ startTimestamp?: number;
/**
- * The Asset File initialization vector.
+ * The absolute end time boundary.
*/
- initializationVector?: string;
+ endTimestamp?: number;
/**
- * The Asset File name.
+ * The relative to end sliding window.
*/
- assetFileName?: string;
+ presentationWindowDuration?: number;
/**
- * The Asset File Id.
+ * The relative to end right edge.
*/
- assetFileId: string;
-}
-
-/**
- * Data needed to decrypt asset files encrypted with legacy storage encryption.
- */
-export interface StorageEncryptedAssetDecryptionData {
+ liveBackoffDuration?: number;
/**
- * The Asset File storage encryption key.
+ * The time scale of time stamps.
*/
- key?: Uint8Array;
+ timescale?: number;
/**
- * Asset File encryption metadata.
+ * The indicator of forcing existing of end time stamp.
*/
- assetFileEncryptionMetadata?: AssetFileEncryptionMetadata[];
+ forceEndTimestamp?: boolean;
}
/**
- * Properties of the Streaming Locator.
+ * The class to specify one track property condition.
*/
-export interface AssetStreamingLocator {
+export interface FilterTrackPropertyCondition {
/**
- * Streaming Locator name.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * The track property type. Possible values include: 'Unknown', 'Type', 'Name', 'Language',
+ * 'FourCC', 'Bitrate'
+ */
+ property: FilterTrackPropertyType;
+ /**
+ * The track property value.
+ */
+ value: string;
+ /**
+ * The track property condition operation. Possible values include: 'Equal', 'NotEqual'
+ */
+ operation: FilterTrackPropertyCompareOperation;
+}
+
+/**
+ * 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[];
+}
+
+/**
+ * An Account Filter.
+ */
+export interface AccountFilter extends ProxyResource {
+ /**
+ * The presentation time range.
+ */
+ presentationTimeRange?: PresentationTimeRange;
+ /**
+ * The first quality.
+ */
+ firstQuality?: FirstQuality;
+ /**
+ * The tracks selection conditions.
+ */
+ tracks?: FilterTrackSelection[];
+ /**
+ * 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 Asset Storage container SAS URLs.
+ */
+export interface AssetContainerSas {
+ /**
+ * The list of Asset container SAS URLs.
+ */
+ assetContainerSasUrls?: string[];
+}
+
+/**
+ * The Asset File Storage encryption metadata.
+ */
+export interface AssetFileEncryptionMetadata {
+ /**
+ * The Asset File initialization vector.
+ */
+ initializationVector?: string;
+ /**
+ * The Asset File name.
+ */
+ assetFileName?: string;
+ /**
+ * The Asset File Id.
+ */
+ assetFileId: string;
+}
+
+/**
+ * Data needed to decrypt asset files encrypted with legacy storage encryption.
+ */
+export interface StorageEncryptedAssetDecryptionData {
+ /**
+ * The Asset File storage encryption key.
+ */
+ key?: Uint8Array;
+ /**
+ * Asset File encryption metadata.
+ */
+ assetFileEncryptionMetadata?: AssetFileEncryptionMetadata[];
+}
+
+/**
+ * Properties of the Streaming Locator.
+ */
+export interface AssetStreamingLocator {
+ /**
+ * Streaming Locator name.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
@@ -1399,3497 +1574,1182 @@ export interface ContentKeyPolicy extends ProxyResource {
}
/**
- * Contains the possible cases for Preset.
- */
-export type PresetUnion = Preset | FaceDetectorPreset | AudioAnalyzerPresetUnion | BuiltInStandardEncoderPreset | StandardEncoderPreset;
-
-/**
- * Base type for all Presets, which define the recipe or instructions on how the input media files
- * should be processed.
+ * Class to specify one track property condition
*/
-export interface Preset {
+export interface TrackPropertyCondition {
/**
- * Polymorphic Discriminator
+ * Track property type. Possible values include: 'Unknown', 'FourCC'
*/
- odatatype: "Preset";
+ property: TrackPropertyType;
+ /**
+ * Track property condition operation. Possible values include: 'Unknown', 'Equal'
+ */
+ operation: TrackPropertyCompareOperation;
+ /**
+ * Track property value
+ */
+ value?: string;
}
/**
- * Contains the possible cases for Codec.
+ * Class to select a track
*/
-export type CodecUnion = Codec | AudioUnion | VideoUnion | CopyVideo | CopyAudio;
+export interface TrackSelection {
+ /**
+ * TrackSelections is a track property condition list which can specify track(s)
+ */
+ trackSelections?: TrackPropertyCondition[];
+}
/**
- * Describes the basic properties of all codecs.
+ * Class to specify properties of default content key for each encryption scheme
*/
-export interface Codec {
+export interface DefaultKey {
/**
- * Polymorphic Discriminator
+ * Label can be used to specify Content Key when creating a Streaming Locator
*/
- odatatype: "Codec";
+ label?: string;
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * Policy used by Default Key
*/
- label?: string;
+ policyName?: string;
}
/**
- * Contains the possible cases for Audio.
- */
-export type AudioUnion = Audio | AacAudio;
-
-/**
- * Defines the common properties for all audio codecs.
+ * Class to specify properties of content key
*/
-export interface Audio {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.Audio";
+export interface StreamingPolicyContentKey {
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * Label can be used to specify Content Key when creating a Streaming Locator
*/
label?: string;
/**
- * The number of channels in the audio.
- */
- channels?: number;
- /**
- * The sampling rate to use for encoding in hertz.
+ * Policy used by Content Key
*/
- samplingRate?: number;
+ policyName?: string;
/**
- * The bitrate, in bits per second, of the output encoded audio.
+ * Tracks which use this content key
*/
- bitrate?: number;
+ tracks?: TrackSelection[];
}
/**
- * Describes Advanced Audio Codec (AAC) audio encoding settings.
+ * Class to specify properties of all content keys in Streaming Policy
*/
-export interface AacAudio {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.AacAudio";
- /**
- * An optional label for the codec. The label can be used to control muxing behavior.
- */
- label?: string;
+export interface StreamingPolicyContentKeys {
/**
- * The number of channels in the audio.
+ * Default content key for an encryption scheme
*/
- channels?: number;
+ defaultKey?: DefaultKey;
/**
- * The sampling rate to use for encoding in hertz.
+ * Representing tracks needs separate content key
*/
- samplingRate?: number;
+ keyToTrackMappings?: StreamingPolicyContentKey[];
+}
+
+/**
+ * Class to specify configurations of PlayReady in Streaming Policy
+ */
+export interface StreamingPolicyPlayReadyConfiguration {
/**
- * The bitrate, in bits per second, of the output encoded audio.
+ * Template for the URL of the custom service delivering licenses to end user players. Not
+ * required when using Azure Media Services for issuing licenses. The template supports
+ * replaceable tokens that the service will update at runtime with the value specific to the
+ * request. The currently supported token values are {AlternativeMediaId}, which is replaced
+ * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
+ * with the value of identifier of the key being requested.
*/
- bitrate?: number;
+ customLicenseAcquisitionUrlTemplate?: string;
/**
- * The encoding profile to be used when encoding audio with AAC. Possible values include:
- * 'AacLc', 'HeAacV1', 'HeAacV2'
+ * Custom attributes for PlayReady
*/
- profile?: AacAudioProfile;
+ playReadyCustomAttributes?: string;
}
/**
- * Contains the possible cases for Layer.
+ * Class to specify configurations of Widevine in Streaming Policy
*/
-export type LayerUnion = Layer | H265VideoLayerUnion | VideoLayerUnion | JpgLayer | PngLayer;
+export interface StreamingPolicyWidevineConfiguration {
+ /**
+ * Template for the URL of the custom service delivering licenses to end user players. Not
+ * required when using Azure Media Services for issuing licenses. The template supports
+ * replaceable tokens that the service will update at runtime with the value specific to the
+ * request. The currently supported token values are {AlternativeMediaId}, which is replaced
+ * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
+ * with the value of identifier of the key being requested.
+ */
+ customLicenseAcquisitionUrlTemplate?: string;
+}
/**
- * 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.
+ * Class to specify configurations of FairPlay in Streaming Policy
*/
-export interface Layer {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "Layer";
- /**
- * 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;
+export interface StreamingPolicyFairPlayConfiguration {
/**
- * 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.
+ * Template for the URL of the custom service delivering licenses to end user players. Not
+ * required when using Azure Media Services for issuing licenses. The template supports
+ * replaceable tokens that the service will update at runtime with the value specific to the
+ * request. The currently supported token values are {AlternativeMediaId}, which is replaced
+ * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
+ * with the value of identifier of the key being requested.
*/
- height?: string;
+ customLicenseAcquisitionUrlTemplate?: string;
/**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
+ * All license to be persistent or not
*/
- label?: string;
+ allowPersistentLicense: boolean;
}
/**
- * Contains the possible cases for H265VideoLayer.
- */
-export type H265VideoLayerUnion = H265VideoLayer | H265Layer;
-
-/**
- * Describes the settings to be used when encoding the input video into a desired output bitrate
- * layer.
+ * Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy
*/
-export interface H265VideoLayer {
+export interface CbcsDrmConfiguration {
/**
- * Polymorphic Discriminator
+ * FairPlay configurations
*/
- odatatype: "#Microsoft.Media.H265VideoLayer";
+ fairPlay?: StreamingPolicyFairPlayConfiguration;
/**
- * 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.
+ * PlayReady configurations
*/
- width?: string;
+ playReady?: StreamingPolicyPlayReadyConfiguration;
/**
- * 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.
+ * Widevine configurations
*/
- height?: string;
+ widevine?: StreamingPolicyWidevineConfiguration;
+}
+
+/**
+ * Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy
+ */
+export interface CencDrmConfiguration {
/**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
+ * PlayReady configurations
*/
- label?: string;
+ playReady?: StreamingPolicyPlayReadyConfiguration;
/**
- * 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.
+ * Widevine configurations
*/
- bitrate: number;
+ widevine?: StreamingPolicyWidevineConfiguration;
+}
+
+/**
+ * Class to specify which protocols are enabled
+ */
+export interface EnabledProtocols {
/**
- * 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.
+ * Enable Download protocol or not
*/
- maxBitrate?: number;
+ download: boolean;
/**
- * The number of B-frames to be used when encoding this layer. If not specified, the encoder
- * chooses an appropriate number based on the video profile and level.
+ * Enable DASH protocol or not
*/
- bFrames?: number;
+ dash: boolean;
/**
- * The frame rate (in frames per second) at which to encode this layer. The value can be in the
- * form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number
- * (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on
- * the profile and level. If it is not specified, the encoder will use the same frame rate as the
- * input video.
+ * Enable HLS protocol or not
*/
- frameRate?: string;
+ hls: boolean;
/**
- * The number of slices to be used when encoding this layer. If not specified, default is zero,
- * which means that encoder will use a single slice for each frame.
+ * Enable SmoothStreaming protocol or not
*/
- slices?: number;
+ smoothStreaming: boolean;
+}
+
+/**
+ * Class for NoEncryption scheme
+ */
+export interface NoEncryption {
/**
- * Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not
- * specified, the encoder will turn it on whenever the video profile permits its use.
+ * Representing supported protocols
*/
- adaptiveBFrame?: boolean;
+ enabledProtocols?: EnabledProtocols;
}
/**
- * Describes the settings to be used when encoding the input video into a desired output bitrate
- * layer with the H.265 video codec.
+ * Class for EnvelopeEncryption encryption scheme
*/
-export interface H265Layer {
+export interface EnvelopeEncryption {
/**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.H265Layer";
- /**
- * 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.
- */
- height?: string;
- /**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
- */
- label?: string;
- /**
- * 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.
- */
- maxBitrate?: number;
- /**
- * The number of B-frames to be used when encoding this layer. If not specified, the encoder
- * chooses an appropriate number based on the video profile and level.
+ * Representing supported protocols
*/
- bFrames?: number;
+ enabledProtocols?: EnabledProtocols;
/**
- * The frame rate (in frames per second) at which to encode this layer. The value can be in the
- * form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number
- * (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on
- * the profile and level. If it is not specified, the encoder will use the same frame rate as the
- * input video.
+ * Representing which tracks should not be encrypted
*/
- frameRate?: string;
+ clearTracks?: TrackSelection[];
/**
- * The number of slices to be used when encoding this layer. If not specified, default is zero,
- * which means that encoder will use a single slice for each frame.
+ * Representing default content key for each encryption scheme and separate content keys for
+ * specific tracks
*/
- slices?: number;
+ contentKeys?: StreamingPolicyContentKeys;
/**
- * Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not
- * specified, the encoder will turn it on whenever the video profile permits its use.
+ * Template for the URL of the custom service delivering keys to end user players. Not required
+ * when using Azure Media Services for issuing keys. The template supports replaceable tokens
+ * that the service will update at runtime with the value specific to the request. The currently
+ * supported token values are {AlternativeMediaId}, which is replaced with the value of
+ * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of
+ * identifier of the key being requested.
*/
- adaptiveBFrame?: boolean;
+ customKeyAcquisitionUrlTemplate?: string;
+}
+
+/**
+ * Class for envelope encryption scheme
+ */
+export interface CommonEncryptionCenc {
/**
- * We currently support Main. Default is Auto. Possible values include: 'Auto', 'Main'
+ * Representing supported protocols
*/
- profile?: H265VideoProfile;
+ enabledProtocols?: EnabledProtocols;
/**
- * 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.
+ * Representing which tracks should not be encrypted
*/
- level?: string;
+ clearTracks?: TrackSelection[];
/**
- * 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).
+ * Representing default content key for each encryption scheme and separate content keys for
+ * specific tracks
*/
- bufferWindow?: string;
+ contentKeys?: StreamingPolicyContentKeys;
/**
- * 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.
+ * Configuration of DRMs for CommonEncryptionCenc encryption scheme
*/
- referenceFrames?: number;
+ drm?: CencDrmConfiguration;
}
/**
- * Contains the possible cases for Video.
- */
-export type VideoUnion = Video | H265Video | ImageUnion | H264Video;
-
-/**
- * Describes the basic properties for encoding the input video.
+ * Class for CommonEncryptionCbcs encryption scheme
*/
-export interface Video {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.Video";
+export interface CommonEncryptionCbcs {
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * Representing supported protocols
*/
- label?: string;
+ enabledProtocols?: EnabledProtocols;
/**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
+ * Representing which tracks should not be encrypted
*/
- keyFrameInterval?: string;
+ clearTracks?: TrackSelection[];
/**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
+ * Representing default content key for each encryption scheme and separate content keys for
+ * specific tracks
*/
- stretchMode?: StretchMode;
+ contentKeys?: StreamingPolicyContentKeys;
/**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
+ * Configuration of DRMs for current encryption scheme
*/
- syncMode?: VideoSyncMode;
+ drm?: CbcsDrmConfiguration;
}
/**
- * Describes all the properties for encoding a video with the H.265 codec.
+ * A Streaming Policy resource
*/
-export interface H265Video {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.H265Video";
- /**
- * An optional label for the codec. The label can be used to control muxing behavior.
- */
- label?: string;
+export interface StreamingPolicy extends ProxyResource {
/**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
+ * Creation time of Streaming Policy
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- keyFrameInterval?: string;
+ readonly created?: Date;
/**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
+ * Default ContentKey used by current Streaming Policy
*/
- stretchMode?: StretchMode;
+ defaultContentKeyPolicyName?: string;
/**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
+ * Configuration of EnvelopeEncryption
*/
- syncMode?: VideoSyncMode;
+ envelopeEncryption?: EnvelopeEncryption;
/**
- * Specifies 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.
+ * Configuration of CommonEncryptionCenc
*/
- sceneChangeDetection?: boolean;
+ commonEncryptionCenc?: CommonEncryptionCenc;
/**
- * Tells the encoder how to choose its encoding settings. Quality will provide for a higher
- * compression ratio but at a higher cost and longer compute time. Speed will produce a
- * relatively larger file but is faster and more economical. The default value is Balanced.
- * Possible values include: 'Speed', 'Balanced', 'Quality'
+ * Configuration of CommonEncryptionCbcs
*/
- complexity?: H265Complexity;
+ commonEncryptionCbcs?: CommonEncryptionCbcs;
/**
- * The collection of output H.265 layers to be produced by the encoder.
+ * Configurations of NoEncryption
*/
- layers?: H265Layer[];
-}
-
-/**
- * Contains the possible cases for TrackDescriptor.
- */
-export type TrackDescriptorUnion = TrackDescriptor | AudioTrackDescriptorUnion | VideoTrackDescriptorUnion;
-
-/**
- * Base type for all TrackDescriptor types, which define the metadata and selection for tracks that
- * should be processed by a Job
- */
-export interface TrackDescriptor {
+ noEncryption?: NoEncryption;
/**
- * Polymorphic Discriminator
+ * The system metadata relating to this resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- odatatype: "TrackDescriptor";
+ readonly systemData?: SystemData;
}
/**
- * Contains the possible cases for AudioTrackDescriptor.
- */
-export type AudioTrackDescriptorUnion = AudioTrackDescriptor | SelectAudioTrackByAttribute | SelectAudioTrackById;
-
-/**
- * A TrackSelection to select audio tracks.
+ * Class for content key in Streaming Locator
*/
-export interface AudioTrackDescriptor {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.AudioTrackDescriptor";
+export interface StreamingLocatorContentKey {
/**
- * Optional designation for single channel audio tracks. Can be used to combine the tracks into
- * stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight',
- * 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight'
+ * ID of Content Key
*/
- channelMapping?: ChannelMapping;
-}
-
-/**
- * Select audio tracks from the input by specifying an attribute and an attribute filter.
- */
-export interface SelectAudioTrackByAttribute {
+ id: string;
/**
- * Polymorphic Discriminator
+ * Encryption type of Content Key. Possible values include: 'CommonEncryptionCenc',
+ * 'CommonEncryptionCbcs', 'EnvelopeEncryption'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- odatatype: "#Microsoft.Media.SelectAudioTrackByAttribute";
+ readonly type?: StreamingLocatorContentKeyType;
/**
- * Optional designation for single channel audio tracks. Can be used to combine the tracks into
- * stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight',
- * 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight'
+ * Label of Content Key as specified in the Streaming Policy
*/
- channelMapping?: ChannelMapping;
+ labelReferenceInStreamingPolicy?: string;
/**
- * The TrackAttribute to filter the tracks by. Possible values include: 'Bitrate', 'Language'
+ * Value of Content Key
*/
- attribute: TrackAttribute;
+ value?: string;
/**
- * The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
- * Possible values include: 'All', 'Top', 'Bottom', 'ValueEquals'
+ * ContentKeyPolicy used by Content Key
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- filter: AttributeFilter;
+ readonly policyName?: string;
/**
- * The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified
- * for the Filter property.
+ * Tracks which use this Content Key
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- filterValue?: string;
+ readonly tracks?: TrackSelection[];
}
/**
- * Select audio tracks from the input by specifying a track identifier.
+ * Class of paths for streaming
*/
-export interface SelectAudioTrackById {
+export interface StreamingPath {
/**
- * Polymorphic Discriminator
+ * Streaming protocol. Possible values include: 'Hls', 'Dash', 'SmoothStreaming', 'Download'
*/
- odatatype: "#Microsoft.Media.SelectAudioTrackById";
+ streamingProtocol: StreamingPolicyStreamingProtocol;
/**
- * Optional designation for single channel audio tracks. Can be used to combine the tracks into
- * stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight',
- * 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight'
+ * Encryption scheme. Possible values include: 'NoEncryption', 'EnvelopeEncryption',
+ * 'CommonEncryptionCenc', 'CommonEncryptionCbcs'
*/
- channelMapping?: ChannelMapping;
+ encryptionScheme: EncryptionScheme;
/**
- * Track identifier to select
+ * Streaming paths for each protocol and encryptionScheme pair
*/
- trackId: number;
+ paths?: string[];
}
/**
- * Contains the possible cases for InputDefinition.
- */
-export type InputDefinitionUnion = InputDefinition | FromAllInputFile | FromEachInputFile | InputFile;
-
-/**
- * Base class for defining an input. Use sub classes of this class to specify tracks selections and
- * related metadata.
+ * Class of response for listContentKeys action
*/
-export interface InputDefinition {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "InputDefinition";
+export interface ListContentKeysResponse {
/**
- * The list of TrackDescriptors which define the metadata and selection of tracks in the input.
+ * ContentKeys used by current Streaming Locator
*/
- includedTracks?: TrackDescriptorUnion[];
+ contentKeys?: StreamingLocatorContentKey[];
}
/**
- * An InputDefinition that looks across all of the files provided to select tracks specified by the
- * IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute
- * to allow selection of a single track across a set of input files.
+ * Class of response for listPaths action
*/
-export interface FromAllInputFile {
+export interface ListPathsResponse {
/**
- * Polymorphic Discriminator
+ * Streaming Paths supported by current Streaming Locator
*/
- odatatype: "#Microsoft.Media.FromAllInputFile";
+ streamingPaths?: StreamingPath[];
/**
- * The list of TrackDescriptors which define the metadata and selection of tracks in the input.
+ * Download Paths supported by current Streaming Locator
*/
- includedTracks?: TrackDescriptorUnion[];
+ downloadPaths?: string[];
}
/**
- * An InputDefinition that looks at each input file provided to select tracks specified by the
- * IncludedTracks property. Generally used with the AudioTrackByAttribute and VideoTrackByAttribute
- * to select tracks from each file given.
+ * A Streaming Locator resource
*/
-export interface FromEachInputFile {
+export interface StreamingLocator extends ProxyResource {
/**
- * Polymorphic Discriminator
+ * Asset Name
+ */
+ assetName: string;
+ /**
+ * The creation time of the Streaming Locator.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- odatatype: "#Microsoft.Media.FromEachInputFile";
+ readonly created?: Date;
/**
- * The list of TrackDescriptors which define the metadata and selection of tracks in the input.
+ * The start time of the Streaming Locator.
*/
- includedTracks?: TrackDescriptorUnion[];
-}
-
-/**
- * An InputDefinition for a single file. TrackSelections are scoped to the file specified.
- */
-export interface InputFile {
+ startTime?: Date;
/**
- * Polymorphic Discriminator
+ * The end time of the Streaming Locator.
*/
- odatatype: "#Microsoft.Media.InputFile";
+ endTime?: Date;
/**
- * The list of TrackDescriptors which define the metadata and selection of tracks in the input.
+ * The StreamingLocatorId of the Streaming Locator.
*/
- includedTracks?: TrackDescriptorUnion[];
+ streamingLocatorId?: string;
/**
- * Name of the file that this input definition applies to.
+ * Name of the Streaming Policy used by this Streaming Locator. Either specify the name of
+ * Streaming Policy you created or use one of the predefined Streaming Policies. The predefined
+ * Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly',
+ * 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey',
+ * 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'
*/
- filename?: string;
-}
-
-/**
- * Describes all the settings to be used when analyzing a video in order to detect (and optionally
- * redact) all the faces present.
- */
-export interface FaceDetectorPreset {
+ streamingPolicyName: string;
/**
- * Polymorphic Discriminator
+ * Name of the default ContentKeyPolicy used by this Streaming Locator.
*/
- odatatype: "#Microsoft.Media.FaceDetectorPreset";
+ defaultContentKeyPolicyName?: string;
/**
- * Specifies the maximum resolution at which your video is analyzed. The default behavior is
- * "SourceResolution," which will keep the input video at its original resolution when analyzed.
- * Using "StandardDefinition" will resize input videos to standard definition while preserving
- * the appropriate aspect ratio. It will only resize if the video is of higher resolution. For
- * example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to
- * "StandardDefinition" will reduce the time it takes to process high resolution video. It may
- * also reduce the cost of using this component (see
- * https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details).
- * However, faces that end up being too small in the resized video may not be detected. Possible
- * values include: 'SourceResolution', 'StandardDefinition'
+ * The ContentKeys used by this Streaming Locator.
*/
- resolution?: AnalysisResolution;
+ contentKeys?: StreamingLocatorContentKey[];
/**
- * This mode provides the ability to choose between the following settings: 1) Analyze - For
- * detection only.This mode generates a metadata JSON file marking appearances of faces
- * throughout the video.Where possible, appearances of the same person are assigned the same ID.
- * 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass
- * process, allowing for selective redaction of a subset of detected faces.It takes in the
- * metadata file from a prior analyze pass, along with the source video, and a user-selected
- * subset of IDs that require redaction. Possible values include: 'Analyze', 'Redact', 'Combined'
+ * Alternative Media ID of this Streaming Locator
*/
- mode?: FaceRedactorMode;
+ alternativeMediaId?: string;
/**
- * Blur type. Possible values include: 'Box', 'Low', 'Med', 'High', 'Black'
+ * A list of asset or account filters which apply to this streaming locator
*/
- blurType?: BlurType;
+ filters?: string[];
/**
- * Dictionary containing key value pairs for parameters not exposed in the preset itself
+ * The system metadata relating to this resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- experimentalOptions?: { [propertyName: string]: string };
+ readonly systemData?: SystemData;
}
/**
- * Contains the possible cases for AudioAnalyzerPreset.
+ * HTTP Live Streaming (HLS) packing setting for the live output.
*/
-export type AudioAnalyzerPresetUnion = AudioAnalyzerPreset | VideoAnalyzerPreset;
+export interface Hls {
+ /**
+ * The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live
+ * event. This value does not affect the packing ratio for HLS CMAF output.
+ */
+ fragmentsPerTsSegment?: number;
+}
/**
- * The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including
- * speech transcription. Currently, the preset supports processing of content with a single audio
- * track.
+ * The Live Output.
*/
-export interface AudioAnalyzerPreset {
+export interface LiveOutput extends ProxyResource {
/**
- * Polymorphic Discriminator
+ * The description of the live output.
*/
- odatatype: "#Microsoft.Media.AudioAnalyzerPreset";
+ description?: string;
/**
- * The language for the audio payload in the input using the BCP-47 format of 'language
- * tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that
- * you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since
- * automatic language detection is not included in basic mode. If the language isn't specified or
- * set to null, automatic language detection will choose the first language detected and process
- * with the selected language for the duration of the file. It does not currently support
- * dynamically switching between languages after the first language is detected. The automatic
- * detection works best with audio recordings with clearly discernable speech. If automatic
- * detection fails to find the language, transcription would fallback to 'en-US'." The list of
- * supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463
+ * The asset that the live output will write to.
*/
- audioLanguage?: string;
+ assetName: string;
/**
- * Determines the set of audio analysis operations to be performed. If unspecified, the Standard
- * AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic'
+ * ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be
+ * archived in the asset for this live output. This also sets the maximum content length for the
+ * rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
*/
- mode?: AudioAnalysisMode;
+ archiveWindowLength: string;
/**
- * Dictionary containing key value pairs for parameters not exposed in the preset itself
+ * The manifest file name. If not provided, the service will generate one automatically.
*/
- experimentalOptions?: { [propertyName: string]: string };
-}
-
-/**
- * Contains the possible cases for Overlay.
- */
-export type OverlayUnion = Overlay | AudioOverlay | VideoOverlay;
-
-/**
- * Base type for all overlays - image, audio or video.
- */
-export interface Overlay {
+ manifestName?: string;
/**
- * Polymorphic Discriminator
+ * HTTP Live Streaming (HLS) packing setting for the live output.
*/
- odatatype: "Overlay";
+ hls?: Hls;
/**
- * The label of the job input which is to be used as an overlay. The Input must specify exactly
- * one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such
- * as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the
- * complete list of supported audio and video file formats.
+ * The initial timestamp that the live output will start at, any content before this value will
+ * not be archived.
*/
- inputLabel: string;
+ outputSnapTime?: number;
/**
- * The start position, with reference to the input video, at which the overlay starts. The value
- * should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the
- * input video. If not specified the overlay starts from the beginning of the input video.
+ * The creation time the live output.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- start?: string;
+ readonly created?: Date;
/**
- * The end position, with reference to the input video, at which the overlay ends. The value
- * should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the
- * input video. If not specified or the value is greater than the input video duration, the
- * overlay will be applied until the end of the input video if the overlay media duration is
- * greater than the input video duration, else the overlay will last as long as the overlay media
- * duration.
+ * The time the live output was last modified.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- end?: string;
+ readonly lastModified?: Date;
/**
- * The duration over which the overlay fades in onto the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade in (same as
- * PT0S).
+ * The provisioning state of the live output.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- fadeInDuration?: string;
+ readonly provisioningState?: string;
/**
- * The duration over which the overlay fades out of the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade out (same as
- * PT0S).
+ * The resource state of the live output. Possible values include: 'Creating', 'Running',
+ * 'Deleting'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- fadeOutDuration?: string;
+ readonly resourceState?: LiveOutputResourceState;
/**
- * The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default
- * is 1.0.
+ * The system metadata relating to this resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- audioGainLevel?: number;
+ readonly systemData?: SystemData;
}
/**
- * Describes the properties of an audio overlay.
+ * The live event endpoint.
*/
-export interface AudioOverlay {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.AudioOverlay";
- /**
- * The label of the job input which is to be used as an overlay. The Input must specify exactly
- * one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such
- * as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the
- * complete list of supported audio and video file formats.
- */
- inputLabel: string;
+export interface LiveEventEndpoint {
/**
- * The start position, with reference to the input video, at which the overlay starts. The value
- * should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the
- * input video. If not specified the overlay starts from the beginning of the input video.
+ * The endpoint protocol.
*/
- start?: string;
+ protocol?: string;
/**
- * The end position, with reference to the input video, at which the overlay ends. The value
- * should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the
- * input video. If not specified or the value is greater than the input video duration, the
- * overlay will be applied until the end of the input video if the overlay media duration is
- * greater than the input video duration, else the overlay will last as long as the overlay media
- * duration.
+ * The endpoint URL.
*/
- end?: string;
+ url?: string;
+}
+
+/**
+ * The IP address range in the CIDR scheme.
+ */
+export interface IPRange {
/**
- * The duration over which the overlay fades in onto the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade in (same as
- * PT0S).
+ * The friendly name for the IP address range.
*/
- fadeInDuration?: string;
+ name?: string;
/**
- * The duration over which the overlay fades out of the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade out (same as
- * PT0S).
+ * The IP address.
*/
- fadeOutDuration?: string;
+ address?: string;
/**
- * The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default
- * is 1.0.
+ * The subnet mask prefix length (see CIDR notation).
*/
- audioGainLevel?: number;
+ subnetPrefixLength?: number;
}
/**
- * A codec flag, which tells the encoder to copy the input video bitstream without re-encoding.
+ * The IP access control.
*/
-export interface CopyVideo {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.CopyVideo";
+export interface IPAccessControl {
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * The IP allow list.
*/
- label?: string;
+ allow?: IPRange[];
}
/**
- * Contains the possible cases for Image.
+ * The IP access control for live event input.
*/
-export type ImageUnion = Image | JpgImage | PngImage;
+export interface LiveEventInputAccessControl {
+ /**
+ * The IP access control properties.
+ */
+ ip?: IPAccessControl;
+}
/**
- * Describes the basic properties for generating thumbnails from the input video
+ * The live event input.
*/
-export interface Image {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.Image";
- /**
- * An optional label for the codec. The label can be used to control muxing behavior.
- */
- label?: string;
- /**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
- */
- keyFrameInterval?: string;
+export interface LiveEventInput {
/**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
+ * The input protocol for the live event. This is specified at creation time and cannot be
+ * updated. Possible values include: 'FragmentedMP4', 'RTMP'
*/
- stretchMode?: StretchMode;
+ streamingProtocol: LiveEventInputProtocol;
/**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
+ * Access control for live event input.
*/
- syncMode?: VideoSyncMode;
+ accessControl?: LiveEventInputAccessControl;
/**
- * The position in the input video from where to start generating thumbnails. The value can be in
- * ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10
- * to start at the 10th frame), or a relative value to stream duration (For example, 10% to start
- * at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select
- * the best thumbnail from the first few seconds of the video and will only produce one
- * thumbnail, no matter what other settings are for Step and Range. The default value is macro
- * {Best}.
+ * ISO 8601 time duration of the key frame interval duration of the input. This value sets the
+ * EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds.
+ * Leave the value empty for encoding live events.
*/
- start: string;
+ keyFrameIntervalDuration?: string;
/**
- * The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For
- * example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image
- * every 30 frames), or a relative value to stream duration (For example, 10% for one image every
- * 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may
- * not be exactly the one specified at transform preset start time. This is due to the encoder,
- * which tries to select the best thumbnail between start time and Step position from start time
- * as the first output. As the default value is 10%, it means if stream has long duration, the
- * first generated thumbnail might be far away from the one specified at start time. Try to
- * select reasonable value for Step if the first thumbnail is expected close to start time, or
- * set Range value at 1 if only one thumbnail is needed at start time.
+ * A UUID in string form to uniquely identify the stream. This can be specified at creation time
+ * but cannot be updated. If omitted, the service will generate a unique value.
*/
- step?: string;
+ accessToken?: string;
/**
- * The position relative to transform preset start time in the input video at which to stop
- * generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5
- * minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the
- * 300th frame from the frame at start time. If this value is 1, it means only producing one
- * thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop
- * at half of stream duration from start time). The default value is 100%, which means to stop at
- * the end of the stream.
+ * The input endpoints for the live event.
*/
- range?: string;
+ endpoints?: LiveEventEndpoint[];
}
/**
- * Contains the possible cases for Format.
+ * The IP access control for the live event preview endpoint.
*/
-export type FormatUnion = Format | ImageFormatUnion | MultiBitrateFormatUnion;
+export interface LiveEventPreviewAccessControl {
+ /**
+ * The IP access control properties.
+ */
+ ip?: IPAccessControl;
+}
/**
- * Base class for output.
+ * Live event preview settings.
*/
-export interface Format {
+export interface LiveEventPreview {
/**
- * Polymorphic Discriminator
+ * The endpoints for preview. Do not share the preview URL with the live event audience.
*/
- odatatype: "Format";
+ endpoints?: LiveEventEndpoint[];
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * The access control for live event preview.
*/
- filenamePattern: string;
-}
-
-/**
- * Contains the possible cases for ImageFormat.
- */
-export type ImageFormatUnion = ImageFormat | JpgFormat | PngFormat;
-
-/**
- * Describes the properties for an output image file.
- */
-export interface ImageFormat {
+ accessControl?: LiveEventPreviewAccessControl;
/**
- * Polymorphic Discriminator
+ * The identifier of the preview locator in Guid format. Specifying this at creation time allows
+ * the caller to know the preview locator url before the event is created. If omitted, the
+ * service will generate a random identifier. This value cannot be updated once the live event is
+ * created.
*/
- odatatype: "#Microsoft.Media.ImageFormat";
+ previewLocator?: string;
+ /**
+ * The name of streaming policy used for the live event preview. This value is specified at
+ * creation time and cannot be updated.
+ */
+ streamingPolicyName?: string;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * An alternative media identifier associated with the streaming locator created for the preview.
+ * This value is specified at creation time and cannot be updated. The identifier can be used in
+ * the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the
+ * StreamingPolicy specified in the StreamingPolicyName field.
*/
- filenamePattern: string;
+ alternativeMediaId?: string;
}
/**
- * Describes the settings for producing JPEG thumbnails.
+ * Specifies the live event type and optional encoding settings for encoding live events.
*/
-export interface JpgFormat {
+export interface LiveEventEncoding {
/**
- * Polymorphic Discriminator
+ * Live event type. When encodingType is set to None, the service simply passes through the
+ * incoming video and audio layer(s) to the output. When encodingType is set to Standard or
+ * Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers.
+ * See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot
+ * be modified after the live event is created. Possible values include: 'None', 'Standard',
+ * 'Premium1080p', 'PassthroughBasic', 'PassthroughStandard'
*/
- odatatype: "#Microsoft.Media.JpgFormat";
+ encodingType?: LiveEventEncodingType;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * The optional encoding preset name, used when encodingType is not None. This value is specified
+ * at creation time and cannot be updated. If the encodingType is set to Standard, then the
+ * default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the
+ * default preset is ‘Default1080p’.
*/
- filenamePattern: string;
-}
-
-/**
- * Describes the settings for producing PNG thumbnails.
- */
-export interface PngFormat {
+ presetName?: string;
/**
- * Polymorphic Discriminator
+ * Specifies how the input video will be resized to fit the desired output resolution(s). Default
+ * is None. Possible values include: 'None', 'AutoSize', 'AutoFit'
*/
- odatatype: "#Microsoft.Media.PngFormat";
+ stretchMode?: StretchMode;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for
+ * the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2
+ * seconds. For the video track it also defines the key frame interval, or the length of a GoP
+ * (group of pictures). If this value is not set for an encoding live event, the fragment
+ * duration defaults to 2 seconds. The value cannot be set for pass-through live events.
*/
- filenamePattern: string;
+ keyFrameInterval?: string;
}
/**
- * A codec flag, which tells the encoder to copy the input audio bitstream.
+ * A track selection condition. This property is reserved for future use, any value set on this
+ * property will be ignored.
*/
-export interface CopyAudio {
+export interface LiveEventInputTrackSelection {
/**
- * Polymorphic Discriminator
+ * Property name to select. This property is reserved for future use, any value set on this
+ * property will be ignored.
+ */
+ property?: string;
+ /**
+ * Comparing operation. This property is reserved for future use, any value set on this property
+ * will be ignored.
*/
- odatatype: "#Microsoft.Media.CopyAudio";
+ operation?: string;
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * Property value to select. This property is reserved for future use, any value set on this
+ * property will be ignored.
*/
- label?: string;
+ value?: string;
}
/**
- * Describes the de-interlacing settings.
+ * Describes a transcription track in the output of a live event, generated using speech-to-text
+ * transcription. This property is reserved for future use, any value set on this property will be
+ * ignored.
*/
-export interface Deinterlace {
- /**
- * The field parity for de-interlacing, defaults to Auto. Possible values include: 'Auto',
- * 'TopFieldFirst', 'BottomFieldFirst'
- */
- parity?: DeinterlaceParity;
+export interface LiveEventOutputTranscriptionTrack {
/**
- * The deinterlacing mode. Defaults to AutoPixelAdaptive. Possible values include: 'Off',
- * 'AutoPixelAdaptive'
+ * The output track name. This property is reserved for future use, any value set on this
+ * property will be ignored.
*/
- mode?: DeinterlaceMode;
+ trackName: string;
}
/**
- * Describes the properties of a rectangular window applied to the input media before processing
- * it.
+ * Describes the transcription tracks in the output of a live event, generated using speech-to-text
+ * transcription. This property is reserved for future use, any value set on this property will be
+ * ignored.
*/
-export interface Rectangle {
- /**
- * The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or
- * relative to the size of the video (For example, 50%).
- */
- left?: string;
+export interface LiveEventTranscription {
/**
- * The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or
- * relative to the size of the video (For example, 50%).
+ * Specifies the language (locale) to be used for speech-to-text transcription – it should match
+ * the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US').
+ * See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live
+ * transcription feature and the list of supported languages.
*/
- top?: string;
+ language?: string;
/**
- * The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or
- * relative to the size of the video (For example, 50%).
+ * Provides a mechanism to select the audio track in the input live feed, to which speech-to-text
+ * transcription is applied. This property is reserved for future use, any value set on this
+ * property will be ignored.
*/
- width?: string;
+ inputTrackSelection?: LiveEventInputTrackSelection[];
/**
- * The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or
- * relative to the size of the video (For example, 50%).
+ * Describes a transcription track in the output of a live event, generated using speech-to-text
+ * transcription. This property is reserved for future use, any value set on this property will
+ * be ignored.
*/
- height?: string;
+ outputTranscriptionTrack?: LiveEventOutputTranscriptionTrack;
}
/**
- * Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be
- * applied to the input media before encoding.
+ * The client access policy.
*/
-export interface Filters {
- /**
- * The de-interlacing settings.
- */
- deinterlace?: Deinterlace;
- /**
- * The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto.
- * Possible values include: 'Auto', 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270'
- */
- rotation?: Rotation;
+export interface CrossSiteAccessPolicies {
/**
- * The parameters for the rectangular window with which to crop the input video.
+ * The content of clientaccesspolicy.xml used by Silverlight.
*/
- crop?: Rectangle;
+ clientAccessPolicy?: string;
/**
- * The properties of overlays to be applied to the input video. These could be audio, image or
- * video overlays.
+ * The content of crossdomain.xml used by Silverlight.
*/
- overlays?: OverlayUnion[];
+ crossDomainPolicy?: string;
}
/**
- * Contains the possible cases for VideoLayer.
- */
-export type VideoLayerUnion = VideoLayer | H264Layer;
-
-/**
- * Describes the settings to be used when encoding the input video into a desired output bitrate
- * layer.
+ * The LiveEvent action input parameter definition.
*/
-export interface VideoLayer {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.VideoLayer";
- /**
- * 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.
- */
- height?: string;
- /**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
- */
- label?: string;
- /**
- * 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.
- */
- maxBitrate?: number;
- /**
- * The number of B-frames to be used when encoding this layer. If not specified, the encoder
- * chooses an appropriate number based on the video profile and level.
- */
- bFrames?: number;
- /**
- * The frame rate (in frames per second) at which to encode this layer. The value can be in the
- * form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number
- * (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on
- * the profile and level. If it is not specified, the encoder will use the same frame rate as the
- * input video.
- */
- frameRate?: string;
- /**
- * The number of slices to be used when encoding this layer. If not specified, default is zero,
- * which means that encoder will use a single slice for each frame.
- */
- slices?: number;
+export interface LiveEventActionInput {
/**
- * Whether or not adaptive B-frames are to be used when encoding this layer. If not specified,
- * the encoder will turn it on whenever the video profile permits its use.
+ * The flag indicates whether live outputs are automatically deleted when live event is being
+ * stopped. Deleting live outputs do not delete the underlying assets.
*/
- adaptiveBFrame?: boolean;
+ removeOutputsOnStop?: boolean;
}
/**
- * Describes the settings to be used when encoding the input video into a desired output bitrate
- * layer with the H.264 video codec.
+ * The live event.
*/
-export interface H264Layer {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.H264Layer";
+export interface LiveEvent extends TrackedResource {
/**
- * 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.
+ * A description for the live event.
*/
- width?: string;
+ description?: 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.
+ * Live event input settings. It defines how the live event receives input from a contribution
+ * encoder.
*/
- height?: string;
+ input: LiveEventInput;
/**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
+ * Live event preview settings. Preview allows live event producers to preview the live streaming
+ * content without creating any live output.
*/
- label?: string;
+ preview?: LiveEventPreview;
/**
- * The average bitrate in bits per second at which to encode the input video when generating this
- * layer. This is a required field.
+ * 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.
*/
- bitrate: number;
+ encoding?: LiveEventEncoding;
/**
- * 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.
+ * Live transcription settings for the live event. See
+ * https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live
+ * transcription feature.
*/
- maxBitrate?: number;
+ transcriptions?: LiveEventTranscription[];
/**
- * The number of B-frames to be used when encoding this layer. If not specified, the encoder
- * chooses an appropriate number based on the video profile and level.
+ * The provisioning state of the live event.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- bFrames?: number;
+ readonly provisioningState?: string;
/**
- * The frame rate (in frames per second) at which to encode this layer. The value can be in the
- * form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number
- * (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on
- * the profile and level. If it is not specified, the encoder will use the same frame rate as the
- * input video.
+ * The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for
+ * more information. Possible values include: 'Stopped', 'Allocating', 'StandBy', 'Starting',
+ * 'Running', 'Stopping', 'Deleting'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- frameRate?: string;
+ readonly resourceState?: LiveEventResourceState;
/**
- * The number of slices to be used when encoding this layer. If not specified, default is zero,
- * which means that encoder will use a single slice for each frame.
+ * Live event cross site access policies.
*/
- slices?: number;
+ crossSiteAccessPolicies?: CrossSiteAccessPolicies;
/**
- * Whether or not adaptive B-frames are to be used when encoding this layer. If not specified,
- * the encoder will turn it on whenever the video profile permits its use.
+ * 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
*/
- adaptiveBFrame?: boolean;
+ useStaticHostname?: boolean;
/**
- * We currently support Baseline, Main, High, High422, High444. Default is Auto. Possible values
- * include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'
+ * 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.
*/
- profile?: H264VideoProfile;
+ hostnamePrefix?: string;
/**
- * 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.
+ * 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'.
*/
- level?: string;
+ streamOptions?: StreamOptionsFlag[];
/**
- * 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).
+ * The creation time for the live event
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- bufferWindow?: string;
+ readonly created?: Date;
/**
- * 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.
+ * The last modified time of the live event.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- referenceFrames?: number;
+ readonly lastModified?: Date;
/**
- * 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. Possible values include: 'Cabac', 'Cavlc'
+ * The system metadata relating to this resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- entropyMode?: EntropyMode;
+ readonly systemData?: SystemData;
}
/**
- * Describes all the properties for encoding a video with the H.264 codec.
+ * Akamai Signature Header authentication key.
*/
-export interface H264Video {
+export interface AkamaiSignatureHeaderAuthenticationKey {
/**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.H264Video";
- /**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * identifier of the key
*/
- label?: string;
+ identifier?: string;
/**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
+ * authentication key
*/
- keyFrameInterval?: string;
+ base64Key?: string;
/**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
+ * The expiration time of the authentication key.
*/
- stretchMode?: StretchMode;
+ expiration?: Date;
+}
+
+/**
+ * Akamai access control
+ */
+export interface AkamaiAccessControl {
/**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
+ * authentication key list
*/
- syncMode?: VideoSyncMode;
+ akamaiSignatureHeaderAuthenticationKeyList?: AkamaiSignatureHeaderAuthenticationKey[];
+}
+
+/**
+ * Streaming endpoint access control definition.
+ */
+export interface StreamingEndpointAccessControl {
/**
- * 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.
+ * The access control of Akamai
*/
- sceneChangeDetection?: boolean;
+ akamai?: AkamaiAccessControl;
/**
- * Tells the encoder how to choose its encoding settings. The default value is Balanced. Possible
- * values include: 'Speed', 'Balanced', 'Quality'
+ * The IP access control of the streaming endpoint.
*/
- complexity?: H264Complexity;
+ ip?: IPAccessControl;
+}
+
+/**
+ * scale units definition
+ */
+export interface StreamingEntityScaleUnit {
/**
- * The collection of output H.264 layers to be produced by the encoder.
+ * The scale unit number of the streaming endpoint.
*/
- layers?: H264Layer[];
+ scaleUnit?: number;
}
/**
- * Describes the settings to produce a JPEG image from the input video.
+ * The streaming endpoint.
*/
-export interface JpgLayer {
+export interface StreamingEndpoint extends TrackedResource {
/**
- * Polymorphic Discriminator
+ * The streaming endpoint description.
*/
- odatatype: "#Microsoft.Media.JpgLayer";
+ description?: string;
/**
- * 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.
+ * The number of scale units. Use the Scale operation to adjust this value.
*/
- width?: string;
+ scaleUnits: number;
/**
- * 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.
+ * This feature is deprecated, do not set a value for this property.
*/
- height?: string;
+ availabilitySetName?: string;
/**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
+ * The access control definition of the streaming endpoint.
*/
- label?: string;
+ accessControl?: StreamingEndpointAccessControl;
/**
- * The compression quality of the JPEG output. Range is from 0-100 and the default is 70.
+ * Max cache age
*/
- quality?: number;
-}
-
-/**
- * Describes the properties for producing a series of JPEG images from the input video.
- */
-export interface JpgImage {
+ maxCacheAge?: number;
/**
- * Polymorphic Discriminator
+ * The custom host names of the streaming endpoint
*/
- odatatype: "#Microsoft.Media.JpgImage";
+ customHostNames?: string[];
/**
- * An optional label for the codec. The label can be used to control muxing behavior.
+ * The streaming endpoint host name.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- label?: string;
+ readonly hostName?: string;
+ /**
+ * The CDN enabled flag.
+ */
+ cdnEnabled?: boolean;
/**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
+ * The CDN provider name.
*/
- keyFrameInterval?: string;
+ cdnProvider?: string;
/**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
+ * The CDN profile name.
*/
- stretchMode?: StretchMode;
+ cdnProfile?: string;
/**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
+ * The provisioning state of the streaming endpoint.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- syncMode?: VideoSyncMode;
+ readonly provisioningState?: string;
/**
- * The position in the input video from where to start generating thumbnails. The value can be in
- * ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10
- * to start at the 10th frame), or a relative value to stream duration (For example, 10% to start
- * at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select
- * the best thumbnail from the first few seconds of the video and will only produce one
- * thumbnail, no matter what other settings are for Step and Range. The default value is macro
- * {Best}.
+ * The resource state of the streaming endpoint. Possible values include: 'Stopped', 'Starting',
+ * 'Running', 'Stopping', 'Deleting', 'Scaling'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- start: string;
+ readonly resourceState?: StreamingEndpointResourceState;
/**
- * The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For
- * example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image
- * every 30 frames), or a relative value to stream duration (For example, 10% for one image every
- * 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may
- * not be exactly the one specified at transform preset start time. This is due to the encoder,
- * which tries to select the best thumbnail between start time and Step position from start time
- * as the first output. As the default value is 10%, it means if stream has long duration, the
- * first generated thumbnail might be far away from the one specified at start time. Try to
- * select reasonable value for Step if the first thumbnail is expected close to start time, or
- * set Range value at 1 if only one thumbnail is needed at start time.
+ * The streaming endpoint access policies.
*/
- step?: string;
+ crossSiteAccessPolicies?: CrossSiteAccessPolicies;
/**
- * The position relative to transform preset start time in the input video at which to stop
- * generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5
- * minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the
- * 300th frame from the frame at start time. If this value is 1, it means only producing one
- * thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop
- * at half of stream duration from start time). The default value is 100%, which means to stop at
- * the end of the stream.
+ * The free trial expiration time.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- range?: string;
+ readonly freeTrialEndTime?: Date;
/**
- * A collection of output JPEG image layers to be produced by the encoder.
+ * The exact time the streaming endpoint was created.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- layers?: JpgLayer[];
+ readonly created?: Date;
/**
- * Sets the number of columns used in thumbnail sprite image. The number of rows are
- * automatically calculated and a VTT file is generated with the coordinate mappings for each
- * thumbnail in the sprite. Note: this value should be a positive integer and a proper value is
- * recommended so that the output image resolution will not go beyond JPEG maximum pixel
- * resolution limit 65535x65535.
+ * The exact time the streaming endpoint was last modified.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- spriteColumn?: number;
-}
-
-/**
- * Represents an output file produced.
- */
-export interface OutputFile {
+ readonly lastModified?: Date;
/**
- * The list of labels that describe how the encoder should multiplex video and audio into an
- * output file. For example, if the encoder is producing two video layers with labels v1 and v2,
- * and one audio layer with label a1, then an array like '[v1, a1]' tells the encoder to produce
- * an output file with the video track represented by v1 and the audio track represented by a1.
+ * The system metadata relating to this resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- labels: string[];
+ readonly systemData?: SystemData;
}
/**
- * Contains the possible cases for MultiBitrateFormat.
- */
-export type MultiBitrateFormatUnion = MultiBitrateFormat | Mp4Format | TransportStreamFormat;
-
-/**
- * Describes the properties for producing a collection of GOP aligned multi-bitrate files. The
- * default behavior is to produce one output file for each video layer which is muxed together with
- * all the audios. The exact output files produced can be controlled by specifying the outputFiles
- * collection.
+ * Optional Parameters.
*/
-export interface MultiBitrateFormat {
+export interface AssetsListOptionalParams extends msRest.RequestOptionsBase {
/**
- * Polymorphic Discriminator
+ * Restricts the set of items returned.
*/
- odatatype: "#Microsoft.Media.MultiBitrateFormat";
+ filter?: string;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- filenamePattern: string;
+ top?: number;
/**
- * The list of output files to produce. Each entry in the list is a set of audio and video layer
- * labels to be muxed together .
+ * Specifies the key by which the result collection should be ordered.
*/
- outputFiles?: OutputFile[];
+ orderby?: string;
}
/**
- * Describes the properties for an output ISO MP4 file.
+ * Optional Parameters.
*/
-export interface Mp4Format {
+export interface AssetsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * Polymorphic Discriminator
+ * Restricts the set of items returned.
*/
- odatatype: "#Microsoft.Media.Mp4Format";
+ filter?: string;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- filenamePattern: string;
+ top?: number;
/**
- * The list of output files to produce. Each entry in the list is a set of audio and video layer
- * labels to be muxed together .
+ * Specifies the key by which the result collection should be ordered.
*/
- outputFiles?: OutputFile[];
+ orderby?: string;
}
/**
- * Describes the settings to produce a PNG image from the input video.
+ * Optional Parameters.
*/
-export interface PngLayer {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.PngLayer";
+export interface ContentKeyPoliciesListOptionalParams extends msRest.RequestOptionsBase {
/**
- * 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.
+ * Restricts the set of items returned.
*/
- width?: string;
+ filter?: 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.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- height?: string;
+ top?: number;
/**
- * The alphanumeric label for this layer, which can be used in multiplexing different video and
- * audio layers, or in naming the output file.
+ * Specifies the key by which the result collection should be ordered.
*/
- label?: string;
+ orderby?: string;
}
/**
- * Describes the properties for producing a series of PNG images from the input video.
+ * Optional Parameters.
*/
-export interface PngImage {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.PngImage";
- /**
- * An optional label for the codec. The label can be used to control muxing behavior.
- */
- label?: string;
- /**
- * The distance between two key frames. The value should be non-zero in the range [0.5, 20]
- * seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting
- * is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow
- * the input source setting.
- */
- keyFrameInterval?: string;
- /**
- * The resizing mode - how the input video will be resized to fit the desired output
- * resolution(s). Default is AutoSize. Possible values include: 'None', 'AutoSize', 'AutoFit'
- */
- stretchMode?: StretchMode;
- /**
- * The Video Sync Mode. Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
- */
- syncMode?: VideoSyncMode;
- /**
- * The position in the input video from where to start generating thumbnails. The value can be in
- * ISO 8601 format (For example, PT05S to start at 5 seconds), or a frame count (For example, 10
- * to start at the 10th frame), or a relative value to stream duration (For example, 10% to start
- * at 10% of stream duration). Also supports a macro {Best}, which tells the encoder to select
- * the best thumbnail from the first few seconds of the video and will only produce one
- * thumbnail, no matter what other settings are for Step and Range. The default value is macro
- * {Best}.
- */
- start: string;
+export interface ContentKeyPoliciesListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * The intervals at which thumbnails are generated. The value can be in ISO 8601 format (For
- * example, PT05S for one image every 5 seconds), or a frame count (For example, 30 for one image
- * every 30 frames), or a relative value to stream duration (For example, 10% for one image every
- * 10% of stream duration). Note: Step value will affect the first generated thumbnail, which may
- * not be exactly the one specified at transform preset start time. This is due to the encoder,
- * which tries to select the best thumbnail between start time and Step position from start time
- * as the first output. As the default value is 10%, it means if stream has long duration, the
- * first generated thumbnail might be far away from the one specified at start time. Try to
- * select reasonable value for Step if the first thumbnail is expected close to start time, or
- * set Range value at 1 if only one thumbnail is needed at start time.
+ * Restricts the set of items returned.
*/
- step?: string;
+ filter?: string;
/**
- * The position relative to transform preset start time in the input video at which to stop
- * generating thumbnails. The value can be in ISO 8601 format (For example, PT5M30S to stop at 5
- * minutes and 30 seconds from start time), or a frame count (For example, 300 to stop at the
- * 300th frame from the frame at start time. If this value is 1, it means only producing one
- * thumbnail at start time), or a relative value to the stream duration (For example, 50% to stop
- * at half of stream duration from start time). The default value is 100%, which means to stop at
- * the end of the stream.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- range?: string;
+ top?: number;
/**
- * A collection of output PNG image layers to be produced by the encoder.
+ * Specifies the key by which the result collection should be ordered.
*/
- layers?: PngLayer[];
+ orderby?: string;
}
/**
- * Describes a built-in preset for encoding the input video with the Standard Encoder.
+ * Optional Parameters.
*/
-export interface BuiltInStandardEncoderPreset {
+export interface StreamingPoliciesListOptionalParams extends msRest.RequestOptionsBase {
/**
- * Polymorphic Discriminator
+ * Restricts the set of items returned.
+ */
+ filter?: string;
+ /**
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- odatatype: "#Microsoft.Media.BuiltInStandardEncoderPreset";
+ top?: number;
/**
- * The built-in preset to be used for encoding videos. Possible values include:
- * 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming',
- * 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding',
- * 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p',
- * 'H264MultipleBitrateSD', 'H265ContentAwareEncoding', 'H265AdaptiveStreaming',
- * 'H265SingleBitrate720p', 'H265SingleBitrate1080p', 'H265SingleBitrate4K'
+ * Specifies the key by which the result collection should be ordered.
*/
- presetName: EncoderNamedPreset;
+ orderby?: string;
}
/**
- * Describes all the settings to be used when encoding the input video with the Standard Encoder.
+ * Optional Parameters.
*/
-export interface StandardEncoderPreset {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.StandardEncoderPreset";
+export interface StreamingPoliciesListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * One or more filtering operations that are applied to the input media before encoding.
+ * Restricts the set of items returned.
*/
- filters?: Filters;
+ filter?: string;
/**
- * The list of codecs to be used when encoding the input video.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- codecs: CodecUnion[];
+ top?: number;
/**
- * The list of outputs to be produced by the encoder.
+ * Specifies the key by which the result collection should be ordered.
*/
- formats: FormatUnion[];
+ orderby?: string;
}
/**
- * A video analyzer preset that extracts insights (rich metadata) from both audio and video, and
- * outputs a JSON format file.
+ * Optional Parameters.
*/
-export interface VideoAnalyzerPreset {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.VideoAnalyzerPreset";
- /**
- * The language for the audio payload in the input using the BCP-47 format of 'language
- * tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that
- * you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since
- * automatic language detection is not included in basic mode. If the language isn't specified or
- * set to null, automatic language detection will choose the first language detected and process
- * with the selected language for the duration of the file. It does not currently support
- * dynamically switching between languages after the first language is detected. The automatic
- * detection works best with audio recordings with clearly discernable speech. If automatic
- * detection fails to find the language, transcription would fallback to 'en-US'." The list of
- * supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463
- */
- audioLanguage?: string;
+export interface StreamingLocatorsListOptionalParams extends msRest.RequestOptionsBase {
/**
- * Determines the set of audio analysis operations to be performed. If unspecified, the Standard
- * AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic'
+ * Restricts the set of items returned.
*/
- mode?: AudioAnalysisMode;
+ filter?: string;
/**
- * Dictionary containing key value pairs for parameters not exposed in the preset itself
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- experimentalOptions?: { [propertyName: string]: string };
+ top?: number;
/**
- * Defines the type of insights that you want the service to generate. The allowed values are
- * 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If
- * you set this to AllInsights and the input is audio only, then only audio insights are
- * generated. Similarly if the input is video only, then only video insights are generated. It is
- * recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video
- * only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs
- * in such conditions would error out. Possible values include: 'AudioInsightsOnly',
- * 'VideoInsightsOnly', 'AllInsights'
+ * Specifies the key by which the result collection should be ordered.
*/
- insightsToExtract?: InsightsType;
+ orderby?: string;
}
/**
- * Describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) output
- * video file(s).
+ * Optional Parameters.
*/
-export interface TransportStreamFormat {
+export interface StreamingLocatorsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * Polymorphic Discriminator
+ * Restricts the set of items returned.
*/
- odatatype: "#Microsoft.Media.TransportStreamFormat";
+ filter?: string;
/**
- * The pattern of the file names for the generated output files. The following macros are
- * supported in the file name: {Basename} - An expansion macro that will use the name of the
- * input video file. If the base name(the file suffix is not included) of the input video file is
- * less than 32 characters long, the base name of input video files will be used. If the length
- * of base name of the input video file exceeds 32 characters, the base name is truncated to the
- * first 32 characters in total length. {Extension} - The appropriate extension for this format.
- * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only
- * applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails.
- * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any
- * unsubstituted macros will be collapsed and removed from the filename.
+ * Specifies a non-negative integer n that limits the number of items returned from a collection.
+ * The service returns the number of available items up to but not greater than the specified
+ * value n.
*/
- filenamePattern: string;
+ top?: number;
/**
- * The list of output files to produce. Each entry in the list is a set of audio and video layer
- * labels to be muxed together .
+ * Specifies the key by which the result collection should be ordered.
*/
- outputFiles?: OutputFile[];
+ orderby?: string;
}
/**
- * Describes the properties of a video overlay.
+ * Optional Parameters.
*/
-export interface VideoOverlay {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.VideoOverlay";
- /**
- * The label of the job input which is to be used as an overlay. The Input must specify exactly
- * one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such
- * as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the
- * complete list of supported audio and video file formats.
- */
- inputLabel: string;
- /**
- * The start position, with reference to the input video, at which the overlay starts. The value
- * should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the
- * input video. If not specified the overlay starts from the beginning of the input video.
- */
- start?: string;
- /**
- * The end position, with reference to the input video, at which the overlay ends. The value
- * should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the
- * input video. If not specified or the value is greater than the input video duration, the
- * overlay will be applied until the end of the input video if the overlay media duration is
- * greater than the input video duration, else the overlay will last as long as the overlay media
- * duration.
- */
- end?: string;
- /**
- * The duration over which the overlay fades in onto the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade in (same as
- * PT0S).
- */
- fadeInDuration?: string;
- /**
- * The duration over which the overlay fades out of the input video. The value should be in ISO
- * 8601 duration format. If not specified the default behavior is to have no fade out (same as
- * PT0S).
- */
- fadeOutDuration?: string;
- /**
- * The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default
- * is 1.0.
- */
- audioGainLevel?: number;
- /**
- * The location in the input video where the overlay is applied.
- */
- position?: Rectangle;
- /**
- * The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean
- * the overlay is opaque.
- */
- opacity?: number;
+export interface LiveEventsCreateOptionalParams extends msRest.RequestOptionsBase {
/**
- * An optional rectangular window used to crop the overlay image or video.
+ * The flag indicates if the resource should be automatically started on creation.
*/
- cropRectangle?: Rectangle;
+ autoStart?: boolean;
}
/**
- * Contains the possible cases for VideoTrackDescriptor.
+ * Optional Parameters.
*/
-export type VideoTrackDescriptorUnion = VideoTrackDescriptor | SelectVideoTrackByAttribute | SelectVideoTrackById;
+export interface LiveEventsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The flag indicates if the resource should be automatically started on creation.
+ */
+ autoStart?: boolean;
+}
/**
- * A TrackSelection to select video tracks.
+ * Optional Parameters.
*/
-export interface VideoTrackDescriptor {
+export interface StreamingEndpointsCreateOptionalParams extends msRest.RequestOptionsBase {
/**
- * Polymorphic Discriminator
+ * The flag indicates if the resource should be automatically started on creation.
*/
- odatatype: "#Microsoft.Media.VideoTrackDescriptor";
+ autoStart?: boolean;
}
/**
- * Select video tracks from the input by specifying an attribute and an attribute filter.
+ * Optional Parameters.
*/
-export interface SelectVideoTrackByAttribute {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.SelectVideoTrackByAttribute";
+export interface StreamingEndpointsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
/**
- * The TrackAttribute to filter the tracks by. Possible values include: 'Bitrate', 'Language'
+ * The flag indicates if the resource should be automatically started on creation.
*/
- attribute: TrackAttribute;
- /**
- * The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
- * Possible values include: 'All', 'Top', 'Bottom', 'ValueEquals'
- */
- filter: AttributeFilter;
- /**
- * The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified
- * for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits
- * per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks.
- */
- filterValue?: string;
-}
-
-/**
- * Select video tracks from the input by specifying a track identifier.
- */
-export interface SelectVideoTrackById {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.SelectVideoTrackById";
- /**
- * Track identifier to select
- */
- trackId: number;
-}
-
-/**
- * Describes the properties of a TransformOutput, which are the rules to be applied while
- * generating the desired output.
- */
-export interface TransformOutput {
- /**
- * A Transform can define more than one outputs. This property defines what the service should do
- * when one output fails - either continue to produce other outputs, or, stop the other outputs.
- * The overall Job state will not reflect failures of outputs that are specified with
- * 'ContinueJob'. The default is 'StopProcessingJob'. Possible values include:
- * 'StopProcessingJob', 'ContinueJob'
- */
- onError?: OnErrorType;
- /**
- * Sets the relative priority of the TransformOutputs within a Transform. This sets the priority
- * that the service uses for processing TransformOutputs. The default priority is Normal.
- * Possible values include: 'Low', 'Normal', 'High'
- */
- relativePriority?: Priority;
- /**
- * Preset that describes the operations that will be used to modify, transcode, or extract
- * insights from the source file to generate the output.
- */
- preset: PresetUnion;
-}
-
-/**
- * A Transform encapsulates the rules or instructions for generating desired outputs from input
- * media, such as by transcoding or by extracting insights. After the Transform is created, it can
- * be applied to input media by creating Jobs.
- */
-export interface Transform extends ProxyResource {
- /**
- * The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly created?: Date;
- /**
- * An optional verbose description of the Transform.
- */
- description?: string;
- /**
- * The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly lastModified?: Date;
- /**
- * An array of one or more TransformOutputs that the Transform should generate.
- */
- outputs: TransformOutput[];
- /**
- * 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;
-}
-
-/**
- * Contains the possible cases for JobInput.
- */
-export type JobInputUnion = JobInput | JobInputClipUnion | JobInputs | JobInputSequence;
-
-/**
- * Base class for inputs to a Job.
- */
-export interface JobInput {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "JobInput";
-}
-
-/**
- * Contains the possible cases for ClipTime.
- */
-export type ClipTimeUnion = ClipTime | AbsoluteClipTime | UtcClipTime;
-
-/**
- * Base class for specifying a clip time. Use sub classes of this class to specify the time
- * position in the media.
- */
-export interface ClipTime {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "ClipTime";
-}
-
-/**
- * Contains the possible cases for JobInputClip.
- */
-export type JobInputClipUnion = JobInputClip | JobInputAsset | JobInputHttp;
-
-/**
- * Represents input files for a Job.
- */
-export interface JobInputClip {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobInputClip";
- /**
- * List of files. Required for JobInputHttp. Maximum of 4000 characters each.
- */
- files?: string[];
- /**
- * Defines a point on the timeline of the input media at which processing will start. Defaults to
- * the beginning of the input media.
- */
- start?: ClipTimeUnion;
- /**
- * Defines a point on the timeline of the input media at which processing will end. Defaults to
- * the end of the input media.
- */
- end?: ClipTimeUnion;
- /**
- * A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the
- * Transform. For example, a Transform can be authored so as to take an image file with the label
- * 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a
- * Job, exactly one of the JobInputs should be the image file, and it should have the label
- * 'xyz'.
- */
- label?: string;
- /**
- * Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track
- * selections and related metadata.
- */
- inputDefinitions?: InputDefinitionUnion[];
-}
-
-/**
- * Specifies the clip time as an absolute time position in the media file. The absolute time can
- * point to a different position depending on whether the media file starts from a timestamp of
- * zero or not.
- */
-export interface AbsoluteClipTime {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.AbsoluteClipTime";
- /**
- * The time position on the timeline of the input media. It is usually specified as an ISO8601
- * period. e.g PT30S for 30 seconds.
- */
- time: string;
-}
-
-/**
- * Specifies the clip time as a Utc time position in the media file. The Utc time can point to a
- * different position depending on whether the media file starts from a timestamp of zero or not.
- */
-export interface UtcClipTime {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.UtcClipTime";
- /**
- * The time position on the timeline of the input media based on Utc time.
- */
- time: Date;
-}
-
-/**
- * Describes a list of inputs to a Job.
- */
-export interface JobInputs {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobInputs";
- /**
- * List of inputs to a Job.
- */
- inputs?: JobInputUnion[];
-}
-
-/**
- * Represents an Asset for input into a Job.
- */
-export interface JobInputAsset {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobInputAsset";
- /**
- * List of files. Required for JobInputHttp. Maximum of 4000 characters each.
- */
- files?: string[];
- /**
- * Defines a point on the timeline of the input media at which processing will start. Defaults to
- * the beginning of the input media.
- */
- start?: ClipTimeUnion;
- /**
- * Defines a point on the timeline of the input media at which processing will end. Defaults to
- * the end of the input media.
- */
- end?: ClipTimeUnion;
- /**
- * A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the
- * Transform. For example, a Transform can be authored so as to take an image file with the label
- * 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a
- * Job, exactly one of the JobInputs should be the image file, and it should have the label
- * 'xyz'.
- */
- label?: string;
- /**
- * Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track
- * selections and related metadata.
- */
- inputDefinitions?: InputDefinitionUnion[];
- /**
- * The name of the input Asset.
- */
- assetName: string;
-}
-
-/**
- * Represents HTTPS job input.
- */
-export interface JobInputHttp {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobInputHttp";
- /**
- * List of files. Required for JobInputHttp. Maximum of 4000 characters each.
- */
- files?: string[];
- /**
- * Defines a point on the timeline of the input media at which processing will start. Defaults to
- * the beginning of the input media.
- */
- start?: ClipTimeUnion;
- /**
- * Defines a point on the timeline of the input media at which processing will end. Defaults to
- * the end of the input media.
- */
- end?: ClipTimeUnion;
- /**
- * A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the
- * Transform. For example, a Transform can be authored so as to take an image file with the label
- * 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a
- * Job, exactly one of the JobInputs should be the image file, and it should have the label
- * 'xyz'.
- */
- label?: string;
- /**
- * Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track
- * selections and related metadata.
- */
- inputDefinitions?: InputDefinitionUnion[];
- /**
- * Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri
- * is given, then the provided file list is assumed to be fully qualified uris. Maximum length of
- * 4000 characters.
- */
- baseUri?: string;
-}
-
-/**
- * Details of JobOutput errors.
- */
-export interface JobErrorDetail {
- /**
- * Code describing the error detail.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly code?: string;
- /**
- * A human-readable representation of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
-}
-
-/**
- * Details of JobOutput errors.
- */
-export interface JobError {
- /**
- * Error code describing the error. Possible values include: 'ServiceError',
- * 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError',
- * 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed',
- * 'ContentUnsupported'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly code?: JobErrorCode;
- /**
- * A human-readable language-dependent representation of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * Helps with categorization of errors. Possible values include: 'Service', 'Download', 'Upload',
- * 'Configuration', 'Content'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly category?: JobErrorCategory;
- /**
- * Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact
- * Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly retry?: JobRetry;
- /**
- * An array of details about specific errors that led to this reported error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly details?: JobErrorDetail[];
-}
-
-/**
- * Contains the possible cases for JobOutput.
- */
-export type JobOutputUnion = JobOutput | JobOutputAsset;
-
-/**
- * Describes all the properties of a JobOutput.
- */
-export interface JobOutput {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "JobOutput";
- /**
- * If the JobOutput is in the Error state, it contains the details of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly error?: JobError;
- /**
- * Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling',
- * 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly state?: JobState;
- /**
- * If the JobOutput is in a Processing state, this contains the Job completion percentage. The
- * value is an estimate and not intended to be used to predict Job completion times. To determine
- * if the JobOutput is complete, use the State property.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly progress?: number;
- /**
- * A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful
- * when your Transform has more than one TransformOutput, whereby your Job has more than one
- * JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the
- * same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job,
- * either through events or on a GET request, you can use the label to easily identify the
- * JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be
- * used, where the preset name is the name of the preset in the corresponding TransformOutput and
- * the output index is the relative index of the this JobOutput within the Job. Note that this
- * index is the same as the relative index of the corresponding TransformOutput within its
- * Transform.
- */
- label?: string;
- /**
- * The UTC date and time at which this Job Output began processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly startTime?: Date;
- /**
- * The UTC date and time at which this Job Output finished processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly endTime?: Date;
-}
-
-/**
- * Represents an Asset used as a JobOutput.
- */
-export interface JobOutputAsset {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobOutputAsset";
- /**
- * If the JobOutput is in the Error state, it contains the details of the error.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly error?: JobError;
- /**
- * Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling',
- * 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly state?: JobState;
- /**
- * If the JobOutput is in a Processing state, this contains the Job completion percentage. The
- * value is an estimate and not intended to be used to predict Job completion times. To determine
- * if the JobOutput is complete, use the State property.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly progress?: number;
- /**
- * A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful
- * when your Transform has more than one TransformOutput, whereby your Job has more than one
- * JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the
- * same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job,
- * either through events or on a GET request, you can use the label to easily identify the
- * JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be
- * used, where the preset name is the name of the preset in the corresponding TransformOutput and
- * the output index is the relative index of the this JobOutput within the Job. Note that this
- * index is the same as the relative index of the corresponding TransformOutput within its
- * Transform.
- */
- label?: string;
- /**
- * The UTC date and time at which this Job Output began processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly startTime?: Date;
- /**
- * The UTC date and time at which this Job Output finished processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly endTime?: Date;
- /**
- * The name of the output Asset.
- */
- assetName: string;
-}
-
-/**
- * A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will
- * be treated as a single input.
- */
-export interface JobInputSequence {
- /**
- * Polymorphic Discriminator
- */
- odatatype: "#Microsoft.Media.JobInputSequence";
- /**
- * JobInputs that make up the timeline.
- */
- inputs?: JobInputClipUnion[];
-}
-
-/**
- * A Job resource type. The progress and state can be obtained by polling a Job or subscribing to
- * events using EventGrid.
- */
-export interface Job extends ProxyResource {
- /**
- * The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly created?: Date;
- /**
- * The current state of the job. Possible values include: 'Canceled', 'Canceling', 'Error',
- * 'Finished', 'Processing', 'Queued', 'Scheduled'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly state?: JobState;
- /**
- * Optional customer supplied description of the Job.
- */
- description?: string;
- /**
- * The inputs for the Job.
- */
- input: JobInputUnion;
- /**
- * The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ'
- * format.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly lastModified?: Date;
- /**
- * The outputs for the Job.
- */
- outputs: JobOutputUnion[];
- /**
- * Priority with which the job should be processed. Higher priority jobs are processed before
- * lower priority jobs. If not set, the default is normal. Possible values include: 'Low',
- * 'Normal', 'High'
- */
- priority?: Priority;
- /**
- * Customer provided key, value pairs that will be returned in Job and JobOutput state events.
- */
- correlationData?: { [propertyName: string]: string };
- /**
- * The UTC date and time at which this Job began processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly startTime?: Date;
- /**
- * The UTC date and time at which this Job finished processing.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly endTime?: Date;
- /**
- * 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;
-}
-
-/**
- * Class to specify one track property condition
- */
-export interface TrackPropertyCondition {
- /**
- * Track property type. Possible values include: 'Unknown', 'FourCC'
- */
- property: TrackPropertyType;
- /**
- * Track property condition operation. Possible values include: 'Unknown', 'Equal'
- */
- operation: TrackPropertyCompareOperation;
- /**
- * Track property value
- */
- value?: string;
-}
-
-/**
- * Class to select a track
- */
-export interface TrackSelection {
- /**
- * TrackSelections is a track property condition list which can specify track(s)
- */
- trackSelections?: TrackPropertyCondition[];
-}
-
-/**
- * Class to specify properties of default content key for each encryption scheme
- */
-export interface DefaultKey {
- /**
- * Label can be used to specify Content Key when creating a Streaming Locator
- */
- label?: string;
- /**
- * Policy used by Default Key
- */
- policyName?: string;
-}
-
-/**
- * Class to specify properties of content key
- */
-export interface StreamingPolicyContentKey {
- /**
- * Label can be used to specify Content Key when creating a Streaming Locator
- */
- label?: string;
- /**
- * Policy used by Content Key
- */
- policyName?: string;
- /**
- * Tracks which use this content key
- */
- tracks?: TrackSelection[];
-}
-
-/**
- * Class to specify properties of all content keys in Streaming Policy
- */
-export interface StreamingPolicyContentKeys {
- /**
- * Default content key for an encryption scheme
- */
- defaultKey?: DefaultKey;
- /**
- * Representing tracks needs separate content key
- */
- keyToTrackMappings?: StreamingPolicyContentKey[];
-}
-
-/**
- * Class to specify configurations of PlayReady in Streaming Policy
- */
-export interface StreamingPolicyPlayReadyConfiguration {
- /**
- * Template for the URL of the custom service delivering licenses to end user players. Not
- * required when using Azure Media Services for issuing licenses. The template supports
- * replaceable tokens that the service will update at runtime with the value specific to the
- * request. The currently supported token values are {AlternativeMediaId}, which is replaced
- * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
- * with the value of identifier of the key being requested.
- */
- customLicenseAcquisitionUrlTemplate?: string;
- /**
- * Custom attributes for PlayReady
- */
- playReadyCustomAttributes?: string;
-}
-
-/**
- * Class to specify configurations of Widevine in Streaming Policy
- */
-export interface StreamingPolicyWidevineConfiguration {
- /**
- * Template for the URL of the custom service delivering licenses to end user players. Not
- * required when using Azure Media Services for issuing licenses. The template supports
- * replaceable tokens that the service will update at runtime with the value specific to the
- * request. The currently supported token values are {AlternativeMediaId}, which is replaced
- * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
- * with the value of identifier of the key being requested.
- */
- customLicenseAcquisitionUrlTemplate?: string;
-}
-
-/**
- * Class to specify configurations of FairPlay in Streaming Policy
- */
-export interface StreamingPolicyFairPlayConfiguration {
- /**
- * Template for the URL of the custom service delivering licenses to end user players. Not
- * required when using Azure Media Services for issuing licenses. The template supports
- * replaceable tokens that the service will update at runtime with the value specific to the
- * request. The currently supported token values are {AlternativeMediaId}, which is replaced
- * with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced
- * with the value of identifier of the key being requested.
- */
- customLicenseAcquisitionUrlTemplate?: string;
- /**
- * All license to be persistent or not
- */
- allowPersistentLicense: boolean;
-}
-
-/**
- * Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy
- */
-export interface CbcsDrmConfiguration {
- /**
- * FairPlay configurations
- */
- fairPlay?: StreamingPolicyFairPlayConfiguration;
- /**
- * PlayReady configurations
- */
- playReady?: StreamingPolicyPlayReadyConfiguration;
- /**
- * Widevine configurations
- */
- widevine?: StreamingPolicyWidevineConfiguration;
-}
-
-/**
- * Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy
- */
-export interface CencDrmConfiguration {
- /**
- * PlayReady configurations
- */
- playReady?: StreamingPolicyPlayReadyConfiguration;
- /**
- * Widevine configurations
- */
- widevine?: StreamingPolicyWidevineConfiguration;
-}
-
-/**
- * Class to specify which protocols are enabled
- */
-export interface EnabledProtocols {
- /**
- * Enable Download protocol or not
- */
- download: boolean;
- /**
- * Enable DASH protocol or not
- */
- dash: boolean;
- /**
- * Enable HLS protocol or not
- */
- hls: boolean;
- /**
- * Enable SmoothStreaming protocol or not
- */
- smoothStreaming: boolean;
-}
-
-/**
- * Class for NoEncryption scheme
- */
-export interface NoEncryption {
- /**
- * Representing supported protocols
- */
- enabledProtocols?: EnabledProtocols;
-}
-
-/**
- * Class for EnvelopeEncryption encryption scheme
- */
-export interface EnvelopeEncryption {
- /**
- * Representing supported protocols
- */
- enabledProtocols?: EnabledProtocols;
- /**
- * Representing which tracks should not be encrypted
- */
- clearTracks?: TrackSelection[];
- /**
- * Representing default content key for each encryption scheme and separate content keys for
- * specific tracks
- */
- contentKeys?: StreamingPolicyContentKeys;
- /**
- * Template for the URL of the custom service delivering keys to end user players. Not required
- * when using Azure Media Services for issuing keys. The template supports replaceable tokens
- * that the service will update at runtime with the value specific to the request. The currently
- * supported token values are {AlternativeMediaId}, which is replaced with the value of
- * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of
- * identifier of the key being requested.
- */
- customKeyAcquisitionUrlTemplate?: string;
-}
-
-/**
- * Class for envelope encryption scheme
- */
-export interface CommonEncryptionCenc {
- /**
- * Representing supported protocols
- */
- enabledProtocols?: EnabledProtocols;
- /**
- * Representing which tracks should not be encrypted
- */
- clearTracks?: TrackSelection[];
- /**
- * Representing default content key for each encryption scheme and separate content keys for
- * specific tracks
- */
- contentKeys?: StreamingPolicyContentKeys;
- /**
- * Configuration of DRMs for CommonEncryptionCenc encryption scheme
- */
- drm?: CencDrmConfiguration;
-}
-
-/**
- * Class for CommonEncryptionCbcs encryption scheme
- */
-export interface CommonEncryptionCbcs {
- /**
- * Representing supported protocols
- */
- enabledProtocols?: EnabledProtocols;
- /**
- * Representing which tracks should not be encrypted
- */
- clearTracks?: TrackSelection[];
- /**
- * Representing default content key for each encryption scheme and separate content keys for
- * specific tracks
- */
- contentKeys?: StreamingPolicyContentKeys;
- /**
- * Configuration of DRMs for current encryption scheme
- */
- drm?: CbcsDrmConfiguration;
-}
-
-/**
- * A Streaming Policy resource
- */
-export interface StreamingPolicy extends ProxyResource {
- /**
- * Creation time of Streaming Policy
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly created?: Date;
- /**
- * Default ContentKey used by current Streaming Policy
- */
- defaultContentKeyPolicyName?: string;
- /**
- * Configuration of EnvelopeEncryption
- */
- envelopeEncryption?: EnvelopeEncryption;
- /**
- * Configuration of CommonEncryptionCenc
- */
- commonEncryptionCenc?: CommonEncryptionCenc;
- /**
- * Configuration of CommonEncryptionCbcs
- */
- commonEncryptionCbcs?: CommonEncryptionCbcs;
- /**
- * Configurations of NoEncryption
- */
- noEncryption?: NoEncryption;
- /**
- * 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;
-}
-
-/**
- * Class for content key in Streaming Locator
- */
-export interface StreamingLocatorContentKey {
- /**
- * ID of Content Key
- */
- id: string;
- /**
- * Encryption type of Content Key. Possible values include: 'CommonEncryptionCenc',
- * 'CommonEncryptionCbcs', 'EnvelopeEncryption'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: StreamingLocatorContentKeyType;
- /**
- * Label of Content Key as specified in the Streaming Policy
- */
- labelReferenceInStreamingPolicy?: string;
- /**
- * Value of Content Key
- */
- value?: string;
- /**
- * ContentKeyPolicy used by Content Key
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly policyName?: string;
- /**
- * Tracks which use this Content Key
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly tracks?: TrackSelection[];
-}
-
-/**
- * Class of paths for streaming
- */
-export interface StreamingPath {
- /**
- * Streaming protocol. Possible values include: 'Hls', 'Dash', 'SmoothStreaming', 'Download'
- */
- streamingProtocol: StreamingPolicyStreamingProtocol;
- /**
- * Encryption scheme. Possible values include: 'NoEncryption', 'EnvelopeEncryption',
- * 'CommonEncryptionCenc', 'CommonEncryptionCbcs'
- */
- encryptionScheme: EncryptionScheme;
- /**
- * Streaming paths for each protocol and encryptionScheme pair
- */
- paths?: string[];
-}
-
-/**
- * Class of response for listContentKeys action
- */
-export interface ListContentKeysResponse {
- /**
- * ContentKeys used by current Streaming Locator
- */
- contentKeys?: StreamingLocatorContentKey[];
-}
-
-/**
- * Class of response for listPaths action
- */
-export interface ListPathsResponse {
- /**
- * Streaming Paths supported by current Streaming Locator
- */
- streamingPaths?: StreamingPath[];
- /**
- * Download Paths supported by current Streaming Locator
- */
- downloadPaths?: string[];
-}
-
-/**
- * A Streaming Locator resource
- */
-export interface StreamingLocator extends ProxyResource {
- /**
- * Asset Name
- */
- assetName: string;
- /**
- * The creation time of the Streaming Locator.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly created?: Date;
- /**
- * The start time of the Streaming Locator.
- */
- startTime?: Date;
- /**
- * The end time of the Streaming Locator.
- */
- endTime?: Date;
- /**
- * The StreamingLocatorId of the Streaming Locator.
- */
- streamingLocatorId?: string;
- /**
- * Name of the Streaming Policy used by this Streaming Locator. Either specify the name of
- * Streaming Policy you created or use one of the predefined Streaming Policies. The predefined
- * Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly',
- * 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey',
- * 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'
- */
- streamingPolicyName: string;
- /**
- * Name of the default ContentKeyPolicy used by this Streaming Locator.
- */
- defaultContentKeyPolicyName?: string;
- /**
- * The ContentKeys used by this Streaming Locator.
- */
- contentKeys?: StreamingLocatorContentKey[];
- /**
- * Alternative Media ID of this Streaming Locator
- */
- alternativeMediaId?: string;
- /**
- * A list of asset or account filters which apply to this streaming locator
- */
- filters?: string[];
- /**
- * 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;
-}
-
-/**
- * HTTP Live Streaming (HLS) packing setting for the live output.
- */
-export interface Hls {
- /**
- * The number of fragments in an HTTP Live Streaming (HLS) TS segment in the output of the live
- * event. This value does not affect the packing ratio for HLS CMAF output.
- */
- fragmentsPerTsSegment?: number;
-}
-
-/**
- * The Live Output.
- */
-export interface LiveOutput extends ProxyResource {
- /**
- * The description of the live output.
- */
- description?: string;
- /**
- * The asset that the live output will write to.
- */
- assetName: string;
- /**
- * ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be
- * archived in the asset for this live output. This also sets the maximum content length for the
- * rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
- */
- archiveWindowLength: string;
- /**
- * The manifest file name. If not provided, the service will generate one automatically.
- */
- manifestName?: string;
- /**
- * HTTP Live Streaming (HLS) packing setting for the live output.
- */
- hls?: Hls;
- /**
- * 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.
- * **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. Possible values include: 'Creating', 'Running',
- * 'Deleting'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly resourceState?: LiveOutputResourceState;
-}
-
-/**
- * The live event endpoint.
- */
-export interface LiveEventEndpoint {
- /**
- * The endpoint protocol.
- */
- protocol?: string;
- /**
- * The endpoint URL.
- */
- url?: string;
-}
-
-/**
- * The IP address range in the CIDR scheme.
- */
-export interface IPRange {
- /**
- * The friendly name for the IP address range.
- */
- name?: string;
- /**
- * The IP address.
- */
- address?: string;
- /**
- * The subnet mask prefix length (see CIDR notation).
- */
- subnetPrefixLength?: number;
-}
-
-/**
- * The IP access control.
- */
-export interface IPAccessControl {
- /**
- * The IP allow list.
- */
- allow?: IPRange[];
-}
-
-/**
- * The IP access control for live event input.
- */
-export interface LiveEventInputAccessControl {
- /**
- * The IP access control properties.
- */
- ip?: IPAccessControl;
-}
-
-/**
- * The live event input.
- */
-export interface LiveEventInput {
- /**
- * The input protocol for the live event. This is specified at creation time and cannot be
- * updated. Possible values include: 'FragmentedMP4', 'RTMP'
- */
- streamingProtocol: LiveEventInputProtocol;
- /**
- * Access control for live event input.
- */
- accessControl?: LiveEventInputAccessControl;
- /**
- * ISO 8601 time duration of the key frame interval duration of the input. This value sets the
- * EXT-X-TARGETDURATION property in the HLS output. For example, use PT2S to indicate 2 seconds.
- * Leave the value empty for encoding live events.
- */
- keyFrameIntervalDuration?: string;
- /**
- * A UUID in string form to uniquely identify the stream. This can be specified at creation time
- * but cannot be updated. If omitted, the service will generate a unique value.
- */
- accessToken?: string;
- /**
- * The input endpoints for the live event.
- */
- endpoints?: LiveEventEndpoint[];
-}
-
-/**
- * The IP access control for the live event preview endpoint.
- */
-export interface LiveEventPreviewAccessControl {
- /**
- * The IP access control properties.
- */
- ip?: IPAccessControl;
-}
-
-/**
- * Live event preview settings.
- */
-export interface LiveEventPreview {
- /**
- * The endpoints for preview. Do not share the preview URL with the live event audience.
- */
- endpoints?: LiveEventEndpoint[];
- /**
- * The access control for live event preview.
- */
- accessControl?: LiveEventPreviewAccessControl;
- /**
- * The identifier of the preview locator in Guid format. Specifying this at creation time allows
- * the caller to know the preview locator url before the event is created. If omitted, the
- * service will generate a random identifier. This value cannot be updated once the live event is
- * created.
- */
- previewLocator?: string;
- /**
- * The name of streaming policy used for the live event preview. This value is specified at
- * creation time and cannot be updated.
- */
- streamingPolicyName?: string;
- /**
- * An alternative media identifier associated with the streaming locator created for the preview.
- * This value is specified at creation time and cannot be updated. The identifier can be used in
- * the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the
- * StreamingPolicy specified in the StreamingPolicyName field.
- */
- alternativeMediaId?: string;
-}
-
-/**
- * Specifies the live event type and optional encoding settings for encoding live events.
- */
-export interface LiveEventEncoding {
- /**
- * Live event type. When encodingType is set to None, the service simply passes through the
- * incoming video and audio layer(s) to the output. When encodingType is set to Standard or
- * Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers.
- * See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot
- * be modified after the live event is created. Possible values include: 'None', 'Standard',
- * 'Premium1080p'
- */
- encodingType?: LiveEventEncodingType;
- /**
- * The optional encoding preset name, used when encodingType is not None. This value is specified
- * at creation time and cannot be updated. If the encodingType is set to Standard, then the
- * default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the
- * default preset is ‘Default1080p’.
- */
- presetName?: string;
- /**
- * Specifies how the input video will be resized to fit the desired output resolution(s). Default
- * is None. Possible values include: 'None', 'AutoSize', 'AutoFit'
- */
- stretchMode?: StretchMode;
- /**
- * Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for
- * the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2
- * seconds. For the video track it also defines the key frame interval, or the length of a GoP
- * (group of pictures). If this value is not set for an encoding live event, the fragment
- * duration defaults to 2 seconds. The value cannot be set for pass-through live events.
- */
- keyFrameInterval?: string;
-}
-
-/**
- * A track selection condition. This property is reserved for future use, any value set on this
- * property will be ignored.
- */
-export interface LiveEventInputTrackSelection {
- /**
- * Property name to select. This property is reserved for future use, any value set on this
- * property will be ignored.
- */
- property?: string;
- /**
- * Comparing operation. This property is reserved for future use, any value set on this property
- * will be ignored.
- */
- operation?: string;
- /**
- * Property value to select. This property is reserved for future use, any value set on this
- * property will be ignored.
- */
- value?: string;
-}
-
-/**
- * Describes a transcription track in the output of a live event, generated using speech-to-text
- * transcription. This property is reserved for future use, any value set on this property will be
- * ignored.
- */
-export interface LiveEventOutputTranscriptionTrack {
- /**
- * The output track name. This property is reserved for future use, any value set on this
- * property will be ignored.
- */
- trackName: string;
-}
-
-/**
- * Describes the transcription tracks in the output of a live event, generated using speech-to-text
- * transcription. This property is reserved for future use, any value set on this property will be
- * ignored.
- */
-export interface LiveEventTranscription {
- /**
- * Specifies the language (locale) to be used for speech-to-text transcription – it should match
- * the spoken language in the audio track. The value should be in BCP-47 format (e.g: 'en-US').
- * See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live
- * transcription feature and the list of supported languages.
- */
- language?: string;
- /**
- * Provides a mechanism to select the audio track in the input live feed, to which speech-to-text
- * transcription is applied. This property is reserved for future use, any value set on this
- * property will be ignored.
- */
- inputTrackSelection?: LiveEventInputTrackSelection[];
- /**
- * Describes a transcription track in the output of a live event, generated using speech-to-text
- * transcription. This property is reserved for future use, any value set on this property will
- * be ignored.
- */
- outputTranscriptionTrack?: LiveEventOutputTranscriptionTrack;
-}
-
-/**
- * The client access policy.
- */
-export interface CrossSiteAccessPolicies {
- /**
- * The content of clientaccesspolicy.xml used by Silverlight.
- */
- clientAccessPolicy?: string;
- /**
- * The content of crossdomain.xml used by Silverlight.
- */
- crossDomainPolicy?: string;
-}
-
-/**
- * The LiveEvent action input parameter definition.
- */
-export interface LiveEventActionInput {
- /**
- * The flag indicates whether live outputs are automatically deleted when live event is being
- * stopped. Deleting live outputs do not delete the underlying assets.
- */
- removeOutputsOnStop?: boolean;
-}
-
-/**
- * The live event.
- */
-export interface LiveEvent extends TrackedResource {
- /**
- * 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. Possible values include: 'Stopped', 'Allocating', 'StandBy', 'Starting',
- * 'Running', 'Stopping', 'Deleting'
- * **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 system metadata relating to this resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly systemData?: SystemData;
-}
-
-/**
- * Akamai Signature Header authentication key.
- */
-export interface AkamaiSignatureHeaderAuthenticationKey {
- /**
- * identifier of the key
- */
- identifier?: string;
- /**
- * authentication key
- */
- base64Key?: string;
- /**
- * The expiration time of the authentication key.
- */
- expiration?: Date;
-}
-
-/**
- * Akamai access control
- */
-export interface AkamaiAccessControl {
- /**
- * authentication key list
- */
- akamaiSignatureHeaderAuthenticationKeyList?: AkamaiSignatureHeaderAuthenticationKey[];
-}
-
-/**
- * Streaming endpoint access control definition.
- */
-export interface StreamingEndpointAccessControl {
- /**
- * The access control of Akamai
- */
- akamai?: AkamaiAccessControl;
- /**
- * The IP access control of the streaming endpoint.
- */
- ip?: IPAccessControl;
-}
-
-/**
- * scale units definition
- */
-export interface StreamingEntityScaleUnit {
- /**
- * The scale unit number of the streaming endpoint.
- */
- scaleUnit?: number;
-}
-
-/**
- * The streaming endpoint.
- */
-export interface StreamingEndpoint extends TrackedResource {
- /**
- * 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. Possible values include: 'Stopped', 'Starting',
- * 'Running', 'Stopping', 'Deleting', 'Scaling'
- * **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;
- /**
- * 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;
-}
-
-/**
- * Optional Parameters.
- */
-export interface AssetsListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface AssetsListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface ContentKeyPoliciesListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface ContentKeyPoliciesListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface TransformsListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface TransformsListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface JobsListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface JobsListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingPoliciesListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingPoliciesListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingLocatorsListOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingLocatorsListNextOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Restricts the set of items returned.
- */
- filter?: string;
- /**
- * Specifies a non-negative integer n that limits the number of items returned from a collection.
- * The service returns the number of available items up to but not greater than the specified
- * value n.
- */
- top?: number;
- /**
- * Specifies the key by which the result collection should be ordered.
- */
- orderby?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface LiveEventsCreateOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The flag indicates if the resource should be automatically started on creation.
- */
- autoStart?: boolean;
-}
-
-/**
- * Optional Parameters.
- */
-export interface LiveEventsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The flag indicates if the resource should be automatically started on creation.
- */
- autoStart?: boolean;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingEndpointsCreateOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The flag indicates if the resource should be automatically started on creation.
- */
- autoStart?: boolean;
-}
-
-/**
- * Optional Parameters.
- */
-export interface StreamingEndpointsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
- /**
- * The flag indicates if the resource should be automatically started on creation.
- */
- autoStart?: boolean;
-}
-
-/**
- * An interface representing AzureMediaServicesOptions.
- */
-export interface AzureMediaServicesOptions extends AzureServiceClientOptions {
- baseUri?: string;
-}
-
-/**
- * @interface
- * A collection of AccountFilter items.
- * @extends Array
- */
-export interface AccountFilterCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * A collection of Operation items.
- * @extends Array
- */
-export interface OperationCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * A collection of MediaService items.
- * @extends Array
- */
-export interface MediaServiceCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * A collection of Asset items.
- * @extends Array
- */
-export interface AssetCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * A collection of AssetFilter items.
- * @extends Array
- */
-export interface AssetFilterCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * A collection of ContentKeyPolicy items.
- * @extends Array
- */
-export interface ContentKeyPolicyCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
+ autoStart?: boolean;
}
/**
- * @interface
- * A collection of Transform items.
- * @extends Array
+ * An interface representing AzureMediaServicesOptions.
*/
-export interface TransformCollection extends Array {
- /**
- * A link to the next page of the collection (when the collection contains too many results to
- * return in one response).
- */
- odatanextLink?: string;
+export interface AzureMediaServicesOptions extends AzureServiceClientOptions {
+ baseUri?: string;
}
/**
* @interface
- * A collection of Job items.
- * @extends Array
+ * A collection of MediaService items.
+ * @extends Array
*/
-export interface JobCollection extends Array {
+export interface MediaServiceCollection extends Array {
/**
* A link to the next page of the collection (when the collection contains too many results to
* return in one response).
@@ -4899,10 +2759,10 @@ export interface JobCollection extends Array {
/**
* @interface
- * A collection of StreamingPolicy items.
- * @extends Array
+ * A collection of AccountFilter items.
+ * @extends Array
*/
-export interface StreamingPolicyCollection extends Array {
+export interface AccountFilterCollection extends Array {
/**
* A link to the next page of the collection (when the collection contains too many results to
* return in one response).
@@ -4912,432 +2772,283 @@ export interface StreamingPolicyCollection extends Array {
/**
* @interface
- * A collection of StreamingLocator items.
- * @extends Array
+ * A collection of Asset items.
+ * @extends Array
*/
-export interface StreamingLocatorCollection extends Array {
+export interface AssetCollection extends Array {
/**
* A link to the next page of the collection (when the collection contains too many results to
* return in one response).
*/
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * The LiveEvent list result.
- * @summary LiveEventListResult
- * @extends Array
- */
-export interface LiveEventListResult extends Array {
- /**
- * The number of result.
- */
- odatacount?: number;
- /**
- * The link to the next set of results. Not empty if value contains incomplete list of live
- * outputs.
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * The LiveOutput list result.
- * @summary LiveOutputListResult
- * @extends Array
- */
-export interface LiveOutputListResult extends Array {
- /**
- * The number of result.
- */
- odatacount?: number;
- /**
- * The link to the next set of results. Not empty if value contains incomplete list of live
- * outputs.
- */
- odatanextLink?: string;
-}
-
-/**
- * @interface
- * The streaming endpoint list result.
- * @summary StreamingEndpointListResult
- * @extends Array
- */
-export interface StreamingEndpointListResult extends Array {
- /**
- * The number of result.
- */
- odatacount?: number;
- /**
- * The link to the next set of results. Not empty if value contains incomplete list of streaming
- * endpoints.
- */
- odatanextLink?: string;
-}
-
-/**
- * Defines values for FilterTrackPropertyType.
- * Possible values include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate'
- * @readonly
- * @enum {string}
- */
-export type FilterTrackPropertyType = 'Unknown' | 'Type' | 'Name' | 'Language' | 'FourCC' | 'Bitrate';
-
-/**
- * Defines values for FilterTrackPropertyCompareOperation.
- * Possible values include: 'Equal', 'NotEqual'
- * @readonly
- * @enum {string}
- */
-export type FilterTrackPropertyCompareOperation = 'Equal' | 'NotEqual';
-
-/**
- * Defines values for CreatedByType.
- * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
- * @readonly
- * @enum {string}
- */
-export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
-
-/**
- * Defines values for MetricUnit.
- * Possible values include: 'Bytes', 'Count', 'Milliseconds'
- * @readonly
- * @enum {string}
- */
-export type MetricUnit = 'Bytes' | 'Count' | 'Milliseconds';
-
-/**
- * Defines values for MetricAggregationType.
- * Possible values include: 'Average', 'Count', 'Total'
- * @readonly
- * @enum {string}
- */
-export type MetricAggregationType = 'Average' | 'Count' | 'Total';
-
-/**
- * Defines values for StorageAccountType.
- * Possible values include: 'Primary', 'Secondary'
- * @readonly
- * @enum {string}
- */
-export type StorageAccountType = 'Primary' | 'Secondary';
-
-/**
- * Defines values for StorageAuthentication.
- * Possible values include: 'System', 'ManagedIdentity'
- * @readonly
- * @enum {string}
- */
-export type StorageAuthentication = 'System' | 'ManagedIdentity';
-
-/**
- * Defines values for AccountEncryptionKeyType.
- * Possible values include: 'SystemKey', 'CustomerKey'
- * @readonly
- * @enum {string}
- */
-export type AccountEncryptionKeyType = 'SystemKey' | 'CustomerKey';
-
-/**
- * Defines values for ManagedIdentityType.
- * Possible values include: 'SystemAssigned', 'None'
- * @readonly
- * @enum {string}
- */
-export type ManagedIdentityType = 'SystemAssigned' | 'None';
-
-/**
- * Defines values for PrivateEndpointConnectionProvisioningState.
- * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed'
- * @readonly
- * @enum {string}
- */
-export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed';
-
-/**
- * Defines values for PrivateEndpointServiceConnectionStatus.
- * Possible values include: 'Pending', 'Approved', 'Rejected'
- * @readonly
- * @enum {string}
- */
-export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected';
-
-/**
- * Defines values for AssetStorageEncryptionFormat.
- * Possible values include: 'None', 'MediaStorageClientEncryption'
- * @readonly
- * @enum {string}
- */
-export type AssetStorageEncryptionFormat = 'None' | 'MediaStorageClientEncryption';
-
-/**
- * Defines values for AssetContainerPermission.
- * Possible values include: 'Read', 'ReadWrite', 'ReadWriteDelete'
- * @readonly
- * @enum {string}
- */
-export type AssetContainerPermission = 'Read' | 'ReadWrite' | 'ReadWriteDelete';
-
-/**
- * Defines values for ContentKeyPolicyPlayReadyUnknownOutputPassingOption.
- * Possible values include: 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction'
- * @readonly
- * @enum {string}
- */
-export type ContentKeyPolicyPlayReadyUnknownOutputPassingOption = 'Unknown' | 'NotAllowed' | 'Allowed' | 'AllowedWithVideoConstriction';
-
-/**
- * Defines values for ContentKeyPolicyPlayReadyLicenseType.
- * Possible values include: 'Unknown', 'NonPersistent', 'Persistent'
- * @readonly
- * @enum {string}
- */
-export type ContentKeyPolicyPlayReadyLicenseType = 'Unknown' | 'NonPersistent' | 'Persistent';
-
-/**
- * Defines values for ContentKeyPolicyPlayReadyContentType.
- * Possible values include: 'Unknown', 'Unspecified', 'UltraVioletDownload', 'UltraVioletStreaming'
- * @readonly
- * @enum {string}
- */
-export type ContentKeyPolicyPlayReadyContentType = 'Unknown' | 'Unspecified' | 'UltraVioletDownload' | 'UltraVioletStreaming';
-
-/**
- * Defines values for ContentKeyPolicyRestrictionTokenType.
- * Possible values include: 'Unknown', 'Swt', 'Jwt'
- * @readonly
- * @enum {string}
- */
-export type ContentKeyPolicyRestrictionTokenType = 'Unknown' | 'Swt' | 'Jwt';
-
-/**
- * Defines values for ContentKeyPolicyFairPlayRentalAndLeaseKeyType.
- * Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited',
- * 'PersistentLimited'
- * @readonly
- * @enum {string}
+ odatanextLink?: string;
+}
+
+/**
+ * @interface
+ * A collection of AssetFilter items.
+ * @extends Array
*/
-export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefined' | 'DualExpiry' | 'PersistentUnlimited' | 'PersistentLimited';
+export interface AssetFilterCollection extends Array {
+ /**
+ * A link to the next page of the collection (when the collection contains too many results to
+ * return in one response).
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for AacAudioProfile.
- * Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2'
- * @readonly
- * @enum {string}
+ * @interface
+ * A collection of ContentKeyPolicy items.
+ * @extends Array
*/
-export type AacAudioProfile = 'AacLc' | 'HeAacV1' | 'HeAacV2';
+export interface ContentKeyPolicyCollection extends Array {
+ /**
+ * A link to the next page of the collection (when the collection contains too many results to
+ * return in one response).
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for H265VideoProfile.
- * Possible values include: 'Auto', 'Main'
- * @readonly
- * @enum {string}
+ * @interface
+ * A collection of StreamingPolicy items.
+ * @extends Array
*/
-export type H265VideoProfile = 'Auto' | 'Main';
+export interface StreamingPolicyCollection extends Array {
+ /**
+ * A link to the next page of the collection (when the collection contains too many results to
+ * return in one response).
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for StretchMode.
- * Possible values include: 'None', 'AutoSize', 'AutoFit'
- * @readonly
- * @enum {string}
+ * @interface
+ * A collection of StreamingLocator items.
+ * @extends Array
*/
-export type StretchMode = 'None' | 'AutoSize' | 'AutoFit';
+export interface StreamingLocatorCollection extends Array {
+ /**
+ * A link to the next page of the collection (when the collection contains too many results to
+ * return in one response).
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for VideoSyncMode.
- * Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr'
- * @readonly
- * @enum {string}
+ * @interface
+ * The LiveEvent list result.
+ * @summary LiveEventListResult
+ * @extends Array
*/
-export type VideoSyncMode = 'Auto' | 'Passthrough' | 'Cfr' | 'Vfr';
+export interface LiveEventListResult extends Array {
+ /**
+ * The number of result.
+ */
+ odatacount?: number;
+ /**
+ * The link to the next set of results. Not empty if value contains incomplete list of live
+ * outputs.
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for H265Complexity.
- * Possible values include: 'Speed', 'Balanced', 'Quality'
- * @readonly
- * @enum {string}
+ * @interface
+ * The LiveOutput list result.
+ * @summary LiveOutputListResult
+ * @extends Array
*/
-export type H265Complexity = 'Speed' | 'Balanced' | 'Quality';
+export interface LiveOutputListResult extends Array {
+ /**
+ * The number of result.
+ */
+ odatacount?: number;
+ /**
+ * The link to the next set of results. Not empty if value contains incomplete list of live
+ * outputs.
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for ChannelMapping.
- * Possible values include: 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', 'BackLeft',
- * 'BackRight', 'StereoLeft', 'StereoRight'
- * @readonly
- * @enum {string}
+ * @interface
+ * The streaming endpoint list result.
+ * @summary StreamingEndpointListResult
+ * @extends Array
*/
-export type ChannelMapping = 'FrontLeft' | 'FrontRight' | 'Center' | 'LowFrequencyEffects' | 'BackLeft' | 'BackRight' | 'StereoLeft' | 'StereoRight';
+export interface StreamingEndpointListResult extends Array {
+ /**
+ * The number of result.
+ */
+ odatacount?: number;
+ /**
+ * The link to the next set of results. Not empty if value contains incomplete list of streaming
+ * endpoints.
+ */
+ odatanextLink?: string;
+}
/**
- * Defines values for TrackAttribute.
- * Possible values include: 'Bitrate', 'Language'
+ * Defines values for MetricUnit.
+ * Possible values include: 'Bytes', 'Count', 'Milliseconds'
* @readonly
* @enum {string}
*/
-export type TrackAttribute = 'Bitrate' | 'Language';
+export type MetricUnit = 'Bytes' | 'Count' | 'Milliseconds';
/**
- * Defines values for AttributeFilter.
- * Possible values include: 'All', 'Top', 'Bottom', 'ValueEquals'
+ * Defines values for MetricAggregationType.
+ * Possible values include: 'Average', 'Count', 'Total'
* @readonly
* @enum {string}
*/
-export type AttributeFilter = 'All' | 'Top' | 'Bottom' | 'ValueEquals';
+export type MetricAggregationType = 'Average' | 'Count' | 'Total';
/**
- * Defines values for AnalysisResolution.
- * Possible values include: 'SourceResolution', 'StandardDefinition'
+ * Defines values for ActionType.
+ * Possible values include: 'Internal'
* @readonly
* @enum {string}
*/
-export type AnalysisResolution = 'SourceResolution' | 'StandardDefinition';
+export type ActionType = 'Internal';
/**
- * Defines values for FaceRedactorMode.
- * Possible values include: 'Analyze', 'Redact', 'Combined'
+ * Defines values for StorageAccountType.
+ * Possible values include: 'Primary', 'Secondary'
* @readonly
* @enum {string}
*/
-export type FaceRedactorMode = 'Analyze' | 'Redact' | 'Combined';
+export type StorageAccountType = 'Primary' | 'Secondary';
/**
- * Defines values for BlurType.
- * Possible values include: 'Box', 'Low', 'Med', 'High', 'Black'
+ * Defines values for StorageAuthentication.
+ * Possible values include: 'System', 'ManagedIdentity'
* @readonly
* @enum {string}
*/
-export type BlurType = 'Box' | 'Low' | 'Med' | 'High' | 'Black';
+export type StorageAuthentication = 'System' | 'ManagedIdentity';
/**
- * Defines values for AudioAnalysisMode.
- * Possible values include: 'Standard', 'Basic'
+ * Defines values for AccountEncryptionKeyType.
+ * Possible values include: 'SystemKey', 'CustomerKey'
* @readonly
* @enum {string}
*/
-export type AudioAnalysisMode = 'Standard' | 'Basic';
+export type AccountEncryptionKeyType = 'SystemKey' | 'CustomerKey';
/**
- * Defines values for DeinterlaceParity.
- * Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst'
+ * Defines values for DefaultAction.
+ * Possible values include: 'Allow', 'Deny'
* @readonly
* @enum {string}
*/
-export type DeinterlaceParity = 'Auto' | 'TopFieldFirst' | 'BottomFieldFirst';
+export type DefaultAction = 'Allow' | 'Deny';
/**
- * Defines values for DeinterlaceMode.
- * Possible values include: 'Off', 'AutoPixelAdaptive'
+ * Defines values for PublicNetworkAccess.
+ * Possible values include: 'Enabled', 'Disabled'
* @readonly
* @enum {string}
*/
-export type DeinterlaceMode = 'Off' | 'AutoPixelAdaptive';
+export type PublicNetworkAccess = 'Enabled' | 'Disabled';
/**
- * Defines values for Rotation.
- * Possible values include: 'Auto', 'None', 'Rotate0', 'Rotate90', 'Rotate180', 'Rotate270'
+ * Defines values for CreatedByType.
+ * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
* @readonly
* @enum {string}
*/
-export type Rotation = 'Auto' | 'None' | 'Rotate0' | 'Rotate90' | 'Rotate180' | 'Rotate270';
+export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
/**
- * Defines values for H264VideoProfile.
- * Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'
+ * Defines values for PrivateEndpointConnectionProvisioningState.
+ * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed'
* @readonly
* @enum {string}
*/
-export type H264VideoProfile = 'Auto' | 'Baseline' | 'Main' | 'High' | 'High422' | 'High444';
+export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed';
/**
- * Defines values for EntropyMode.
- * Possible values include: 'Cabac', 'Cavlc'
+ * Defines values for PrivateEndpointServiceConnectionStatus.
+ * Possible values include: 'Pending', 'Approved', 'Rejected'
* @readonly
* @enum {string}
*/
-export type EntropyMode = 'Cabac' | 'Cavlc';
+export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected';
/**
- * Defines values for H264Complexity.
- * Possible values include: 'Speed', 'Balanced', 'Quality'
+ * Defines values for FilterTrackPropertyType.
+ * Possible values include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate'
* @readonly
* @enum {string}
*/
-export type H264Complexity = 'Speed' | 'Balanced' | 'Quality';
+export type FilterTrackPropertyType = 'Unknown' | 'Type' | 'Name' | 'Language' | 'FourCC' | 'Bitrate';
/**
- * Defines values for EncoderNamedPreset.
- * Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p',
- * 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio',
- * 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'CopyAllBitrateNonInterleaved',
- * 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD',
- * 'H265ContentAwareEncoding', 'H265AdaptiveStreaming', 'H265SingleBitrate720p',
- * 'H265SingleBitrate1080p', 'H265SingleBitrate4K'
+ * Defines values for FilterTrackPropertyCompareOperation.
+ * Possible values include: 'Equal', 'NotEqual'
* @readonly
* @enum {string}
*/
-export type EncoderNamedPreset = 'H264SingleBitrateSD' | 'H264SingleBitrate720p' | 'H264SingleBitrate1080p' | 'AdaptiveStreaming' | 'AACGoodQualityAudio' | 'ContentAwareEncodingExperimental' | 'ContentAwareEncoding' | 'CopyAllBitrateNonInterleaved' | 'H264MultipleBitrate1080p' | 'H264MultipleBitrate720p' | 'H264MultipleBitrateSD' | 'H265ContentAwareEncoding' | 'H265AdaptiveStreaming' | 'H265SingleBitrate720p' | 'H265SingleBitrate1080p' | 'H265SingleBitrate4K';
+export type FilterTrackPropertyCompareOperation = 'Equal' | 'NotEqual';
/**
- * Defines values for InsightsType.
- * Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'
+ * Defines values for AssetStorageEncryptionFormat.
+ * Possible values include: 'None', 'MediaStorageClientEncryption'
* @readonly
* @enum {string}
*/
-export type InsightsType = 'AudioInsightsOnly' | 'VideoInsightsOnly' | 'AllInsights';
+export type AssetStorageEncryptionFormat = 'None' | 'MediaStorageClientEncryption';
/**
- * Defines values for OnErrorType.
- * Possible values include: 'StopProcessingJob', 'ContinueJob'
+ * Defines values for AssetContainerPermission.
+ * Possible values include: 'Read', 'ReadWrite', 'ReadWriteDelete'
* @readonly
* @enum {string}
*/
-export type OnErrorType = 'StopProcessingJob' | 'ContinueJob';
+export type AssetContainerPermission = 'Read' | 'ReadWrite' | 'ReadWriteDelete';
/**
- * Defines values for Priority.
- * Possible values include: 'Low', 'Normal', 'High'
+ * Defines values for ContentKeyPolicyPlayReadyUnknownOutputPassingOption.
+ * Possible values include: 'Unknown', 'NotAllowed', 'Allowed', 'AllowedWithVideoConstriction'
* @readonly
* @enum {string}
*/
-export type Priority = 'Low' | 'Normal' | 'High';
+export type ContentKeyPolicyPlayReadyUnknownOutputPassingOption = 'Unknown' | 'NotAllowed' | 'Allowed' | 'AllowedWithVideoConstriction';
/**
- * Defines values for JobErrorCode.
- * Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible',
- * 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError',
- * 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported'
+ * Defines values for ContentKeyPolicyPlayReadyLicenseType.
+ * Possible values include: 'Unknown', 'NonPersistent', 'Persistent'
* @readonly
* @enum {string}
*/
-export type JobErrorCode = 'ServiceError' | 'ServiceTransientError' | 'DownloadNotAccessible' | 'DownloadTransientError' | 'UploadNotAccessible' | 'UploadTransientError' | 'ConfigurationUnsupported' | 'ContentMalformed' | 'ContentUnsupported';
+export type ContentKeyPolicyPlayReadyLicenseType = 'Unknown' | 'NonPersistent' | 'Persistent';
/**
- * Defines values for JobErrorCategory.
- * Possible values include: 'Service', 'Download', 'Upload', 'Configuration', 'Content'
+ * Defines values for ContentKeyPolicyPlayReadyContentType.
+ * Possible values include: 'Unknown', 'Unspecified', 'UltraVioletDownload', 'UltraVioletStreaming'
* @readonly
* @enum {string}
*/
-export type JobErrorCategory = 'Service' | 'Download' | 'Upload' | 'Configuration' | 'Content';
+export type ContentKeyPolicyPlayReadyContentType = 'Unknown' | 'Unspecified' | 'UltraVioletDownload' | 'UltraVioletStreaming';
/**
- * Defines values for JobRetry.
- * Possible values include: 'DoNotRetry', 'MayRetry'
+ * Defines values for ContentKeyPolicyRestrictionTokenType.
+ * Possible values include: 'Unknown', 'Swt', 'Jwt'
* @readonly
* @enum {string}
*/
-export type JobRetry = 'DoNotRetry' | 'MayRetry';
+export type ContentKeyPolicyRestrictionTokenType = 'Unknown' | 'Swt' | 'Jwt';
/**
- * Defines values for JobState.
- * Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued',
- * 'Scheduled'
+ * Defines values for ContentKeyPolicyFairPlayRentalAndLeaseKeyType.
+ * Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited',
+ * 'PersistentLimited'
* @readonly
* @enum {string}
*/
-export type JobState = 'Canceled' | 'Canceling' | 'Error' | 'Finished' | 'Processing' | 'Queued' | 'Scheduled';
+export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefined' | 'DualExpiry' | 'PersistentUnlimited' | 'PersistentLimited';
/**
* Defines values for TrackPropertyType.
@@ -5398,11 +3109,20 @@ export type LiveEventInputProtocol = 'FragmentedMP4' | 'RTMP';
/**
* Defines values for LiveEventEncodingType.
- * Possible values include: 'None', 'Standard', 'Premium1080p'
+ * Possible values include: 'None', 'Standard', 'Premium1080p', 'PassthroughBasic',
+ * 'PassthroughStandard'
+ * @readonly
+ * @enum {string}
+ */
+export type LiveEventEncodingType = 'None' | 'Standard' | 'Premium1080p' | 'PassthroughBasic' | 'PassthroughStandard';
+
+/**
+ * Defines values for StretchMode.
+ * Possible values include: 'None', 'AutoSize', 'AutoFit'
* @readonly
* @enum {string}
*/
-export type LiveEventEncodingType = 'None' | 'Standard' | 'Premium1080p';
+export type StretchMode = 'None' | 'AutoSize' | 'AutoFit';
/**
* Defines values for LiveEventResourceState.
@@ -5417,117 +3137,17 @@ export type LiveEventResourceState = 'Stopped' | 'Allocating' | 'StandBy' | 'Sta
* Defines values for StreamOptionsFlag.
* Possible values include: 'Default', 'LowLatency'
* @readonly
- * @enum {string}
- */
-export type StreamOptionsFlag = 'Default' | 'LowLatency';
-
-/**
- * Defines values for StreamingEndpointResourceState.
- * Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting', 'Scaling'
- * @readonly
- * @enum {string}
- */
-export type StreamingEndpointResourceState = 'Stopped' | 'Starting' | 'Running' | 'Stopping' | 'Deleting' | 'Scaling';
-
-/**
- * Contains response data for the list operation.
- */
-export type AccountFiltersListResponse = AccountFilterCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountFilterCollection;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type AccountFiltersGetResponse = AccountFilter & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountFilter;
- };
-};
-
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type AccountFiltersCreateOrUpdateResponse = AccountFilter & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountFilter;
- };
-};
-
-/**
- * Contains response data for the update operation.
- */
-export type AccountFiltersUpdateResponse = AccountFilter & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountFilter;
- };
-};
+ * @enum {string}
+ */
+export type StreamOptionsFlag = 'Default' | 'LowLatency';
/**
- * Contains response data for the listNext operation.
+ * Defines values for StreamingEndpointResourceState.
+ * Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting', 'Scaling'
+ * @readonly
+ * @enum {string}
*/
-export type AccountFiltersListNextResponse = AccountFilterCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountFilterCollection;
- };
-};
+export type StreamingEndpointResourceState = 'Stopped' | 'Starting' | 'Running' | 'Stopping' | 'Deleting' | 'Scaling';
/**
* Contains response data for the list operation.
@@ -5549,26 +3169,6 @@ export type OperationsListResponse = OperationCollection & {
};
};
-/**
- * Contains response data for the listNext operation.
- */
-export type OperationsListNextResponse = OperationCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationCollection;
- };
-};
-
/**
* Contains response data for the list operation.
*/
@@ -5689,26 +3289,6 @@ export type MediaservicesListBySubscriptionResponse = MediaServiceCollection & {
};
};
-/**
- * Contains response data for the getBySubscription operation.
- */
-export type MediaservicesGetBySubscriptionResponse = MediaService & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: MediaService;
- };
-};
-
/**
* Contains response data for the listNext operation.
*/
@@ -5872,7 +3452,7 @@ export type LocationsCheckNameAvailabilityResponse = EntityNameAvailabilityCheck
/**
* Contains response data for the list operation.
*/
-export type AssetsListResponse = AssetCollection & {
+export type AccountFiltersListResponse = AccountFilterCollection & {
/**
* The underlying HTTP response.
*/
@@ -5885,14 +3465,14 @@ export type AssetsListResponse = AssetCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetCollection;
+ parsedBody: AccountFilterCollection;
};
};
/**
* Contains response data for the get operation.
*/
-export type AssetsGetResponse = Asset & {
+export type AccountFiltersGetResponse = AccountFilter & {
/**
* The underlying HTTP response.
*/
@@ -5905,14 +3485,14 @@ export type AssetsGetResponse = Asset & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Asset;
+ parsedBody: AccountFilter;
};
};
/**
* Contains response data for the createOrUpdate operation.
*/
-export type AssetsCreateOrUpdateResponse = Asset & {
+export type AccountFiltersCreateOrUpdateResponse = AccountFilter & {
/**
* The underlying HTTP response.
*/
@@ -5925,14 +3505,14 @@ export type AssetsCreateOrUpdateResponse = Asset & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Asset;
+ parsedBody: AccountFilter;
};
};
/**
* Contains response data for the update operation.
*/
-export type AssetsUpdateResponse = Asset & {
+export type AccountFiltersUpdateResponse = AccountFilter & {
/**
* The underlying HTTP response.
*/
@@ -5945,14 +3525,14 @@ export type AssetsUpdateResponse = Asset & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Asset;
+ parsedBody: AccountFilter;
};
};
/**
- * Contains response data for the listContainerSas operation.
+ * Contains response data for the listNext operation.
*/
-export type AssetsListContainerSasResponse = AssetContainerSas & {
+export type AccountFiltersListNextResponse = AccountFilterCollection & {
/**
* The underlying HTTP response.
*/
@@ -5965,14 +3545,14 @@ export type AssetsListContainerSasResponse = AssetContainerSas & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetContainerSas;
+ parsedBody: AccountFilterCollection;
};
};
/**
- * Contains response data for the getEncryptionKey operation.
+ * Contains response data for the list operation.
*/
-export type AssetsGetEncryptionKeyResponse = StorageEncryptedAssetDecryptionData & {
+export type AssetsListResponse = AssetCollection & {
/**
* The underlying HTTP response.
*/
@@ -5985,14 +3565,14 @@ export type AssetsGetEncryptionKeyResponse = StorageEncryptedAssetDecryptionData
/**
* The response body as parsed JSON or XML
*/
- parsedBody: StorageEncryptedAssetDecryptionData;
+ parsedBody: AssetCollection;
};
};
/**
- * Contains response data for the listStreamingLocators operation.
+ * Contains response data for the get operation.
*/
-export type AssetsListStreamingLocatorsResponse = ListStreamingLocatorsResponse & {
+export type AssetsGetResponse = Asset & {
/**
* The underlying HTTP response.
*/
@@ -6005,14 +3585,14 @@ export type AssetsListStreamingLocatorsResponse = ListStreamingLocatorsResponse
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ListStreamingLocatorsResponse;
+ parsedBody: Asset;
};
};
/**
- * Contains response data for the listNext operation.
+ * Contains response data for the createOrUpdate operation.
*/
-export type AssetsListNextResponse = AssetCollection & {
+export type AssetsCreateOrUpdateResponse = Asset & {
/**
* The underlying HTTP response.
*/
@@ -6025,14 +3605,14 @@ export type AssetsListNextResponse = AssetCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetCollection;
+ parsedBody: Asset;
};
};
/**
- * Contains response data for the list operation.
+ * Contains response data for the update operation.
*/
-export type AssetFiltersListResponse = AssetFilterCollection & {
+export type AssetsUpdateResponse = Asset & {
/**
* The underlying HTTP response.
*/
@@ -6045,14 +3625,14 @@ export type AssetFiltersListResponse = AssetFilterCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetFilterCollection;
+ parsedBody: Asset;
};
};
/**
- * Contains response data for the get operation.
+ * Contains response data for the listContainerSas operation.
*/
-export type AssetFiltersGetResponse = AssetFilter & {
+export type AssetsListContainerSasResponse = AssetContainerSas & {
/**
* The underlying HTTP response.
*/
@@ -6065,14 +3645,14 @@ export type AssetFiltersGetResponse = AssetFilter & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetFilter;
+ parsedBody: AssetContainerSas;
};
};
/**
- * Contains response data for the createOrUpdate operation.
+ * Contains response data for the getEncryptionKey operation.
*/
-export type AssetFiltersCreateOrUpdateResponse = AssetFilter & {
+export type AssetsGetEncryptionKeyResponse = StorageEncryptedAssetDecryptionData & {
/**
* The underlying HTTP response.
*/
@@ -6085,14 +3665,14 @@ export type AssetFiltersCreateOrUpdateResponse = AssetFilter & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetFilter;
+ parsedBody: StorageEncryptedAssetDecryptionData;
};
};
/**
- * Contains response data for the update operation.
+ * Contains response data for the listStreamingLocators operation.
*/
-export type AssetFiltersUpdateResponse = AssetFilter & {
+export type AssetsListStreamingLocatorsResponse = ListStreamingLocatorsResponse & {
/**
* The underlying HTTP response.
*/
@@ -6105,14 +3685,14 @@ export type AssetFiltersUpdateResponse = AssetFilter & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetFilter;
+ parsedBody: ListStreamingLocatorsResponse;
};
};
/**
* Contains response data for the listNext operation.
*/
-export type AssetFiltersListNextResponse = AssetFilterCollection & {
+export type AssetsListNextResponse = AssetCollection & {
/**
* The underlying HTTP response.
*/
@@ -6125,14 +3705,14 @@ export type AssetFiltersListNextResponse = AssetFilterCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: AssetFilterCollection;
+ parsedBody: AssetCollection;
};
};
/**
* Contains response data for the list operation.
*/
-export type ContentKeyPoliciesListResponse = ContentKeyPolicyCollection & {
+export type AssetFiltersListResponse = AssetFilterCollection & {
/**
* The underlying HTTP response.
*/
@@ -6145,14 +3725,14 @@ export type ContentKeyPoliciesListResponse = ContentKeyPolicyCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ContentKeyPolicyCollection;
+ parsedBody: AssetFilterCollection;
};
};
/**
* Contains response data for the get operation.
*/
-export type ContentKeyPoliciesGetResponse = ContentKeyPolicy & {
+export type AssetFiltersGetResponse = AssetFilter & {
/**
* The underlying HTTP response.
*/
@@ -6165,14 +3745,14 @@ export type ContentKeyPoliciesGetResponse = ContentKeyPolicy & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ContentKeyPolicy;
+ parsedBody: AssetFilter;
};
};
/**
* Contains response data for the createOrUpdate operation.
*/
-export type ContentKeyPoliciesCreateOrUpdateResponse = ContentKeyPolicy & {
+export type AssetFiltersCreateOrUpdateResponse = AssetFilter & {
/**
* The underlying HTTP response.
*/
@@ -6185,34 +3765,14 @@ export type ContentKeyPoliciesCreateOrUpdateResponse = ContentKeyPolicy & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ContentKeyPolicy;
+ parsedBody: AssetFilter;
};
};
/**
* Contains response data for the update operation.
*/
-export type ContentKeyPoliciesUpdateResponse = ContentKeyPolicy & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ContentKeyPolicy;
- };
-};
-
-/**
- * Contains response data for the getPolicyPropertiesWithSecrets operation.
- */
-export type ContentKeyPoliciesGetPolicyPropertiesWithSecretsResponse = ContentKeyPolicyProperties & {
+export type AssetFiltersUpdateResponse = AssetFilter & {
/**
* The underlying HTTP response.
*/
@@ -6225,14 +3785,14 @@ export type ContentKeyPoliciesGetPolicyPropertiesWithSecretsResponse = ContentKe
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ContentKeyPolicyProperties;
+ parsedBody: AssetFilter;
};
};
/**
* Contains response data for the listNext operation.
*/
-export type ContentKeyPoliciesListNextResponse = ContentKeyPolicyCollection & {
+export type AssetFiltersListNextResponse = AssetFilterCollection & {
/**
* The underlying HTTP response.
*/
@@ -6245,14 +3805,14 @@ export type ContentKeyPoliciesListNextResponse = ContentKeyPolicyCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: ContentKeyPolicyCollection;
+ parsedBody: AssetFilterCollection;
};
};
/**
* Contains response data for the list operation.
*/
-export type TransformsListResponse = TransformCollection & {
+export type ContentKeyPoliciesListResponse = ContentKeyPolicyCollection & {
/**
* The underlying HTTP response.
*/
@@ -6265,14 +3825,14 @@ export type TransformsListResponse = TransformCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: TransformCollection;
+ parsedBody: ContentKeyPolicyCollection;
};
};
/**
* Contains response data for the get operation.
*/
-export type TransformsGetResponse = Transform & {
+export type ContentKeyPoliciesGetResponse = ContentKeyPolicy & {
/**
* The underlying HTTP response.
*/
@@ -6285,14 +3845,14 @@ export type TransformsGetResponse = Transform & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Transform;
+ parsedBody: ContentKeyPolicy;
};
};
/**
* Contains response data for the createOrUpdate operation.
*/
-export type TransformsCreateOrUpdateResponse = Transform & {
+export type ContentKeyPoliciesCreateOrUpdateResponse = ContentKeyPolicy & {
/**
* The underlying HTTP response.
*/
@@ -6305,94 +3865,14 @@ export type TransformsCreateOrUpdateResponse = Transform & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Transform;
+ parsedBody: ContentKeyPolicy;
};
};
/**
* Contains response data for the update operation.
*/
-export type TransformsUpdateResponse = Transform & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Transform;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type TransformsListNextResponse = TransformCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: TransformCollection;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type JobsListResponse = JobCollection & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: JobCollection;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type JobsGetResponse = Job & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Job;
- };
-};
-
-/**
- * Contains response data for the create operation.
- */
-export type JobsCreateResponse = Job & {
+export type ContentKeyPoliciesUpdateResponse = ContentKeyPolicy & {
/**
* The underlying HTTP response.
*/
@@ -6405,14 +3885,14 @@ export type JobsCreateResponse = Job & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Job;
+ parsedBody: ContentKeyPolicy;
};
};
/**
- * Contains response data for the update operation.
+ * Contains response data for the getPolicyPropertiesWithSecrets operation.
*/
-export type JobsUpdateResponse = Job & {
+export type ContentKeyPoliciesGetPolicyPropertiesWithSecretsResponse = ContentKeyPolicyProperties & {
/**
* The underlying HTTP response.
*/
@@ -6425,14 +3905,14 @@ export type JobsUpdateResponse = Job & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: Job;
+ parsedBody: ContentKeyPolicyProperties;
};
};
/**
* Contains response data for the listNext operation.
*/
-export type JobsListNextResponse = JobCollection & {
+export type ContentKeyPoliciesListNextResponse = ContentKeyPolicyCollection & {
/**
* The underlying HTTP response.
*/
@@ -6445,7 +3925,7 @@ export type JobsListNextResponse = JobCollection & {
/**
* The response body as parsed JSON or XML
*/
- parsedBody: JobCollection;
+ parsedBody: ContentKeyPolicyCollection;
};
};
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts
deleted file mode 100644
index b01438de2b6d..000000000000
--- a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * 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.
- */
-
-export {
- discriminators,
- AacAudio,
- AbsoluteClipTime,
- AccountEncryption,
- AccountFilter,
- AkamaiAccessControl,
- AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
- Asset,
- AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
- AzureEntityResource,
- BaseResource,
- BuiltInStandardEncoderPreset,
- CbcsDrmConfiguration,
- CencDrmConfiguration,
- ClipTime,
- Codec,
- CommonEncryptionCbcs,
- CommonEncryptionCenc,
- ContentKeyPolicy,
- ContentKeyPolicyClearKeyConfiguration,
- ContentKeyPolicyConfiguration,
- ContentKeyPolicyFairPlayConfiguration,
- ContentKeyPolicyFairPlayOfflineRentalConfiguration,
- ContentKeyPolicyOpenRestriction,
- ContentKeyPolicyOption,
- ContentKeyPolicyPlayReadyConfiguration,
- ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader,
- ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier,
- ContentKeyPolicyPlayReadyContentKeyLocation,
- ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction,
- ContentKeyPolicyPlayReadyLicense,
- ContentKeyPolicyPlayReadyPlayRight,
- ContentKeyPolicyRestriction,
- ContentKeyPolicyRestrictionTokenKey,
- ContentKeyPolicyRsaTokenKey,
- ContentKeyPolicySymmetricTokenKey,
- ContentKeyPolicyTokenClaim,
- ContentKeyPolicyTokenRestriction,
- ContentKeyPolicyUnknownConfiguration,
- ContentKeyPolicyUnknownRestriction,
- ContentKeyPolicyWidevineConfiguration,
- ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
- CrossSiteAccessPolicies,
- DefaultKey,
- Deinterlace,
- EnabledProtocols,
- EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
- FilterTrackPropertyCondition,
- FilterTrackSelection,
- FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
- Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
- IPAccessControl,
- IPRange,
- Job,
- JobCollection,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
- KeyVaultProperties,
- Layer,
- LiveEvent,
- LiveEventEncoding,
- LiveEventEndpoint,
- LiveEventInput,
- LiveEventInputAccessControl,
- LiveEventInputTrackSelection,
- LiveEventOutputTranscriptionTrack,
- LiveEventPreview,
- LiveEventPreviewAccessControl,
- LiveEventTranscription,
- LiveOutput,
- MediaService,
- MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
- NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
- PresentationTimeRange,
- Preset,
- PrivateEndpoint,
- PrivateEndpointConnection,
- PrivateLinkResource,
- PrivateLinkServiceConnectionState,
- ProxyResource,
- Rectangle,
- Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
- StorageAccount,
- StreamingEndpoint,
- StreamingEndpointAccessControl,
- StreamingLocator,
- StreamingLocatorContentKey,
- StreamingPolicy,
- StreamingPolicyContentKey,
- StreamingPolicyContentKeys,
- StreamingPolicyFairPlayConfiguration,
- StreamingPolicyPlayReadyConfiguration,
- StreamingPolicyWidevineConfiguration,
- SystemData,
- TrackDescriptor,
- TrackedResource,
- TrackPropertyCondition,
- TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
-} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts
index e14199eb259b..151aff73091f 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventActionInput,
LiveEventEncoding,
@@ -112,29 +75,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -147,17 +96,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts
index 215091bc028d..df2917ca9a5a 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -111,29 +74,15 @@ export {
LiveOutputListResult,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/locationsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/locationsMappers.ts
index 3d5c8bf8086b..412d8e6a350d 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/locationsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/locationsMappers.ts
@@ -8,8 +8,9 @@
export {
discriminators,
- ApiError,
CheckNameAvailabilityInput,
EntityNameAvailabilityCheckOutput,
- ODataError
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts
index a1cf2b3374b7..d8abe7cf76aa 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts
@@ -12,192 +12,208 @@ import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
-export const PresentationTimeRange: msRest.CompositeMapper = {
- serializedName: "PresentationTimeRange",
+export const OperationDisplay: msRest.CompositeMapper = {
+ serializedName: "OperationDisplay",
type: {
name: "Composite",
- className: "PresentationTimeRange",
+ className: "OperationDisplay",
modelProperties: {
- startTimestamp: {
- serializedName: "startTimestamp",
- type: {
- name: "Number"
- }
- },
- endTimestamp: {
- serializedName: "endTimestamp",
- type: {
- name: "Number"
- }
- },
- presentationWindowDuration: {
- serializedName: "presentationWindowDuration",
+ provider: {
+ serializedName: "provider",
type: {
- name: "Number"
+ name: "String"
}
},
- liveBackoffDuration: {
- serializedName: "liveBackoffDuration",
+ resource: {
+ serializedName: "resource",
type: {
- name: "Number"
+ name: "String"
}
},
- timescale: {
- serializedName: "timescale",
+ operation: {
+ serializedName: "operation",
type: {
- name: "Number"
+ name: "String"
}
},
- forceEndTimestamp: {
- serializedName: "forceEndTimestamp",
+ description: {
+ serializedName: "description",
type: {
- name: "Boolean"
+ name: "String"
}
}
}
}
};
-export const FilterTrackPropertyCondition: msRest.CompositeMapper = {
- serializedName: "FilterTrackPropertyCondition",
+export const MetricDimension: msRest.CompositeMapper = {
+ serializedName: "MetricDimension",
type: {
name: "Composite",
- className: "FilterTrackPropertyCondition",
+ className: "MetricDimension",
modelProperties: {
- property: {
- required: true,
- serializedName: "property",
+ name: {
+ readOnly: true,
+ serializedName: "name",
type: {
name: "String"
}
},
- value: {
- required: true,
- serializedName: "value",
+ displayName: {
+ readOnly: true,
+ serializedName: "displayName",
type: {
name: "String"
}
},
- operation: {
- required: true,
- serializedName: "operation",
+ toBeExportedForShoebox: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "toBeExportedForShoebox",
type: {
- name: "String"
+ name: "Boolean"
}
}
}
}
};
-export const FirstQuality: msRest.CompositeMapper = {
- serializedName: "FirstQuality",
+export const MetricSpecification: msRest.CompositeMapper = {
+ serializedName: "MetricSpecification",
type: {
name: "Composite",
- className: "FirstQuality",
+ className: "MetricSpecification",
modelProperties: {
- bitrate: {
- required: true,
- serializedName: "bitrate",
+ name: {
+ readOnly: true,
+ serializedName: "name",
type: {
- name: "Number"
+ name: "String"
}
- }
- }
- }
-};
-
-export const FilterTrackSelection: msRest.CompositeMapper = {
- serializedName: "FilterTrackSelection",
- type: {
- name: "Composite",
- className: "FilterTrackSelection",
- modelProperties: {
- trackSelections: {
- required: true,
- serializedName: "trackSelections",
+ },
+ displayName: {
+ readOnly: true,
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ displayDescription: {
+ readOnly: true,
+ serializedName: "displayDescription",
+ type: {
+ name: "String"
+ }
+ },
+ unit: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "unit",
+ type: {
+ name: "String"
+ }
+ },
+ aggregationType: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "aggregationType",
+ type: {
+ name: "String"
+ }
+ },
+ lockAggregationType: {
+ nullable: true,
+ readOnly: true,
+ serializedName: "lockAggregationType",
+ type: {
+ name: "String"
+ }
+ },
+ supportedAggregationTypes: {
+ serializedName: "supportedAggregationTypes",
type: {
name: "Sequence",
element: {
type: {
- name: "Composite",
- className: "FilterTrackPropertyCondition"
+ name: "String"
}
}
}
- }
- }
- }
-};
-
-export const SystemData: msRest.CompositeMapper = {
- serializedName: "systemData",
- type: {
- name: "Composite",
- className: "SystemData",
- modelProperties: {
- createdBy: {
- serializedName: "createdBy",
- type: {
- name: "String"
- }
},
- createdByType: {
- serializedName: "createdByType",
+ dimensions: {
+ readOnly: true,
+ serializedName: "dimensions",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MetricDimension"
+ }
+ }
}
},
- createdAt: {
- serializedName: "createdAt",
+ enableRegionalMdmAccount: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "enableRegionalMdmAccount",
type: {
- name: "DateTime"
+ name: "Boolean"
}
},
- lastModifiedBy: {
- serializedName: "lastModifiedBy",
+ sourceMdmAccount: {
+ readOnly: true,
+ serializedName: "sourceMdmAccount",
type: {
name: "String"
}
},
- lastModifiedByType: {
- serializedName: "lastModifiedByType",
+ sourceMdmNamespace: {
+ readOnly: true,
+ serializedName: "sourceMdmNamespace",
type: {
name: "String"
}
},
- lastModifiedAt: {
- serializedName: "lastModifiedAt",
+ supportedTimeGrainTypes: {
+ readOnly: true,
+ serializedName: "supportedTimeGrainTypes",
type: {
- name: "DateTime"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
}
}
}
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const LogSpecification: msRest.CompositeMapper = {
+ serializedName: "LogSpecification",
type: {
name: "Composite",
- className: "Resource",
+ className: "LogSpecification",
modelProperties: {
- id: {
+ name: {
readOnly: true,
- serializedName: "id",
+ serializedName: "name",
type: {
name: "String"
}
},
- name: {
+ displayName: {
readOnly: true,
- serializedName: "name",
+ serializedName: "displayName",
type: {
name: "String"
}
},
- type: {
+ blobDuration: {
readOnly: true,
- serializedName: "type",
+ serializedName: "blobDuration",
type: {
name: "String"
}
@@ -206,94 +222,34 @@ export const Resource: msRest.CompositeMapper = {
}
};
-export const ProxyResource: msRest.CompositeMapper = {
- serializedName: "ProxyResource",
- type: {
- name: "Composite",
- className: "ProxyResource",
- modelProperties: {
- ...Resource.type.modelProperties
- }
- }
-};
-
-export const AccountFilter: msRest.CompositeMapper = {
- serializedName: "AccountFilter",
+export const ServiceSpecification: msRest.CompositeMapper = {
+ serializedName: "ServiceSpecification",
type: {
name: "Composite",
- className: "AccountFilter",
+ className: "ServiceSpecification",
modelProperties: {
- ...ProxyResource.type.modelProperties,
- presentationTimeRange: {
- serializedName: "properties.presentationTimeRange",
- type: {
- name: "Composite",
- className: "PresentationTimeRange"
- }
- },
- firstQuality: {
- serializedName: "properties.firstQuality",
- type: {
- name: "Composite",
- className: "FirstQuality"
- }
- },
- tracks: {
- serializedName: "properties.tracks",
+ logSpecifications: {
+ readOnly: true,
+ serializedName: "logSpecifications",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "FilterTrackSelection"
+ className: "LogSpecification"
}
}
}
},
- systemData: {
+ metricSpecifications: {
readOnly: true,
- serializedName: "systemData",
- type: {
- name: "Composite",
- className: "SystemData"
- }
- }
- }
- }
-};
-
-export const ODataError: msRest.CompositeMapper = {
- serializedName: "ODataError",
- type: {
- name: "Composite",
- className: "ODataError",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- target: {
- serializedName: "target",
- type: {
- name: "String"
- }
- },
- details: {
- serializedName: "details",
+ serializedName: "metricSpecifications",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ODataError"
+ className: "MetricSpecification"
}
}
}
@@ -302,44 +258,67 @@ export const ODataError: msRest.CompositeMapper = {
}
};
-export const ApiError: msRest.CompositeMapper = {
- serializedName: "ApiError",
+export const Properties: msRest.CompositeMapper = {
+ serializedName: "Properties",
type: {
name: "Composite",
- className: "ApiError",
+ className: "Properties",
modelProperties: {
- error: {
- serializedName: "error",
+ serviceSpecification: {
+ readOnly: true,
+ serializedName: "serviceSpecification",
type: {
name: "Composite",
- className: "ODataError"
+ className: "ServiceSpecification"
}
}
}
}
};
-export const TrackedResource: msRest.CompositeMapper = {
- serializedName: "TrackedResource",
+export const Operation: msRest.CompositeMapper = {
+ serializedName: "Operation",
type: {
name: "Composite",
- className: "TrackedResource",
+ className: "Operation",
modelProperties: {
- ...Resource.type.modelProperties,
- tags: {
- serializedName: "tags",
+ name: {
+ required: true,
+ serializedName: "name",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- location: {
- required: true,
- serializedName: "location",
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "Properties"
+ }
+ },
+ isDataAction: {
+ nullable: true,
+ serializedName: "isDataAction",
+ type: {
+ name: "Boolean"
+ }
+ },
+ actionType: {
+ nullable: true,
+ serializedName: "actionType",
type: {
name: "String"
}
@@ -348,16 +327,27 @@ export const TrackedResource: msRest.CompositeMapper = {
}
};
-export const AzureEntityResource: msRest.CompositeMapper = {
- serializedName: "AzureEntityResource",
+export const EntityNameAvailabilityCheckOutput: msRest.CompositeMapper = {
+ serializedName: "EntityNameAvailabilityCheckOutput",
type: {
name: "Composite",
- className: "AzureEntityResource",
+ className: "EntityNameAvailabilityCheckOutput",
modelProperties: {
- ...Resource.type.modelProperties,
- etag: {
- readOnly: true,
- serializedName: "etag",
+ nameAvailable: {
+ required: true,
+ serializedName: "nameAvailable",
+ type: {
+ name: "Boolean"
+ }
+ },
+ reason: {
+ serializedName: "reason",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
type: {
name: "String"
}
@@ -366,49 +356,58 @@ export const AzureEntityResource: msRest.CompositeMapper = {
}
};
-export const Provider: msRest.CompositeMapper = {
- serializedName: "Provider",
+export const ResourceIdentity: msRest.CompositeMapper = {
+ serializedName: "ResourceIdentity",
type: {
name: "Composite",
- className: "Provider",
+ className: "ResourceIdentity",
modelProperties: {
- providerName: {
- required: true,
- serializedName: "providerName",
+ userAssignedIdentity: {
+ serializedName: "userAssignedIdentity",
type: {
name: "String"
}
+ },
+ useSystemAssignedIdentity: {
+ required: true,
+ serializedName: "useSystemAssignedIdentity",
+ type: {
+ name: "Boolean"
+ }
}
}
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "OperationDisplay",
+export const StorageAccount: msRest.CompositeMapper = {
+ serializedName: "StorageAccount",
type: {
name: "Composite",
- className: "OperationDisplay",
+ className: "StorageAccount",
modelProperties: {
- provider: {
- serializedName: "provider",
+ id: {
+ serializedName: "id",
type: {
name: "String"
}
},
- resource: {
- serializedName: "resource",
+ type: {
+ required: true,
+ serializedName: "type",
type: {
name: "String"
}
},
- operation: {
- serializedName: "operation",
+ identity: {
+ serializedName: "identity",
type: {
- name: "String"
+ name: "Composite",
+ className: "ResourceIdentity"
}
},
- description: {
- serializedName: "description",
+ status: {
+ readOnly: true,
+ serializedName: "status",
type: {
name: "String"
}
@@ -417,91 +416,97 @@ export const OperationDisplay: msRest.CompositeMapper = {
}
};
-export const MetricDimension: msRest.CompositeMapper = {
- serializedName: "MetricDimension",
+export const SyncStorageKeysInput: msRest.CompositeMapper = {
+ serializedName: "SyncStorageKeysInput",
type: {
name: "Composite",
- className: "MetricDimension",
+ className: "SyncStorageKeysInput",
modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
+ id: {
+ serializedName: "id",
type: {
name: "String"
}
- },
- displayName: {
- readOnly: true,
- serializedName: "displayName",
+ }
+ }
+ }
+};
+
+export const KeyVaultProperties: msRest.CompositeMapper = {
+ serializedName: "KeyVaultProperties",
+ type: {
+ name: "Composite",
+ className: "KeyVaultProperties",
+ modelProperties: {
+ keyIdentifier: {
+ serializedName: "keyIdentifier",
type: {
name: "String"
}
},
- toBeExportedForShoebox: {
- nullable: false,
+ currentKeyIdentifier: {
readOnly: true,
- serializedName: "toBeExportedForShoebox",
+ serializedName: "currentKeyIdentifier",
type: {
- name: "Boolean"
+ name: "String"
}
}
}
}
};
-export const MetricSpecification: msRest.CompositeMapper = {
- serializedName: "MetricSpecification",
+export const AccountEncryption: msRest.CompositeMapper = {
+ serializedName: "AccountEncryption",
type: {
name: "Composite",
- className: "MetricSpecification",
+ className: "AccountEncryption",
modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- displayName: {
- readOnly: true,
- serializedName: "displayName",
+ type: {
+ required: true,
+ serializedName: "type",
type: {
name: "String"
}
},
- displayDescription: {
- readOnly: true,
- serializedName: "displayDescription",
+ keyVaultProperties: {
+ serializedName: "keyVaultProperties",
type: {
- name: "String"
+ name: "Composite",
+ className: "KeyVaultProperties"
}
},
- unit: {
- nullable: false,
- readOnly: true,
- serializedName: "unit",
+ identity: {
+ serializedName: "identity",
type: {
- name: "String"
+ name: "Composite",
+ className: "ResourceIdentity"
}
},
- aggregationType: {
- nullable: false,
+ status: {
readOnly: true,
- serializedName: "aggregationType",
+ serializedName: "status",
type: {
name: "String"
}
- },
- lockAggregationType: {
- nullable: true,
- readOnly: true,
- serializedName: "lockAggregationType",
+ }
+ }
+ }
+};
+
+export const AccessControl: msRest.CompositeMapper = {
+ serializedName: "AccessControl",
+ type: {
+ name: "Composite",
+ className: "AccessControl",
+ modelProperties: {
+ defaultAction: {
+ serializedName: "defaultAction",
type: {
name: "String"
}
},
- supportedAggregationTypes: {
- serializedName: "supportedAggregationTypes",
+ ipAllowList: {
+ serializedName: "ipAllowList",
type: {
name: "Sequence",
element: {
@@ -510,301 +515,197 @@ export const MetricSpecification: msRest.CompositeMapper = {
}
}
}
- },
- dimensions: {
- readOnly: true,
- serializedName: "dimensions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MetricDimension"
- }
- }
- }
}
}
}
};
-export const LogSpecification: msRest.CompositeMapper = {
- serializedName: "LogSpecification",
+export const KeyDelivery: msRest.CompositeMapper = {
+ serializedName: "KeyDelivery",
type: {
name: "Composite",
- className: "LogSpecification",
+ className: "KeyDelivery",
modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
+ accessControl: {
+ serializedName: "accessControl",
type: {
- name: "String"
- }
- },
- displayName: {
- readOnly: true,
- serializedName: "displayName",
- type: {
- name: "String"
- }
- },
- blobDuration: {
- readOnly: true,
- serializedName: "blobDuration",
- type: {
- name: "String"
+ name: "Composite",
+ className: "AccessControl"
}
}
}
}
};
-export const ServiceSpecification: msRest.CompositeMapper = {
- serializedName: "ServiceSpecification",
+export const UserAssignedManagedIdentity: msRest.CompositeMapper = {
+ serializedName: "UserAssignedManagedIdentity",
type: {
name: "Composite",
- className: "ServiceSpecification",
+ className: "UserAssignedManagedIdentity",
modelProperties: {
- logSpecifications: {
+ clientId: {
+ nullable: true,
readOnly: true,
- serializedName: "logSpecifications",
+ serializedName: "clientId",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "LogSpecification"
- }
- }
+ name: "Uuid"
}
},
- metricSpecifications: {
- readOnly: true,
- serializedName: "metricSpecifications",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "MetricSpecification"
- }
- }
- }
- }
- }
- }
-};
-
-export const Properties: msRest.CompositeMapper = {
- serializedName: "Properties",
- type: {
- name: "Composite",
- className: "Properties",
- modelProperties: {
- serviceSpecification: {
+ principalId: {
+ nullable: true,
readOnly: true,
- serializedName: "serviceSpecification",
+ serializedName: "principalId",
type: {
- name: "Composite",
- className: "ServiceSpecification"
+ name: "Uuid"
}
}
}
}
};
-export const Operation: msRest.CompositeMapper = {
- serializedName: "Operation",
+export const MediaServiceIdentity: msRest.CompositeMapper = {
+ serializedName: "MediaServiceIdentity",
type: {
name: "Composite",
- className: "Operation",
+ className: "MediaServiceIdentity",
modelProperties: {
- name: {
+ type: {
required: true,
- serializedName: "name",
+ serializedName: "type",
type: {
name: "String"
}
},
- display: {
- serializedName: "display",
+ principalId: {
+ nullable: true,
+ readOnly: true,
+ serializedName: "principalId",
type: {
- name: "Composite",
- className: "OperationDisplay"
+ name: "Uuid"
}
},
- origin: {
- serializedName: "origin",
+ tenantId: {
+ nullable: true,
+ readOnly: true,
+ serializedName: "tenantId",
type: {
- name: "String"
+ name: "Uuid"
}
},
- properties: {
- serializedName: "properties",
+ userAssignedIdentities: {
+ serializedName: "userAssignedIdentities",
type: {
- name: "Composite",
- className: "Properties"
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "Composite",
+ className: "UserAssignedManagedIdentity"
+ }
+ }
}
}
}
}
};
-export const Location: msRest.CompositeMapper = {
- serializedName: "Location",
+export const SystemData: msRest.CompositeMapper = {
+ serializedName: "systemData",
type: {
name: "Composite",
- className: "Location",
+ className: "SystemData",
modelProperties: {
- name: {
- required: true,
- serializedName: "name",
+ createdBy: {
+ serializedName: "createdBy",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const EntityNameAvailabilityCheckOutput: msRest.CompositeMapper = {
- serializedName: "EntityNameAvailabilityCheckOutput",
- type: {
- name: "Composite",
- className: "EntityNameAvailabilityCheckOutput",
- modelProperties: {
- nameAvailable: {
- required: true,
- serializedName: "nameAvailable",
+ },
+ createdByType: {
+ serializedName: "createdByType",
type: {
- name: "Boolean"
+ name: "String"
}
},
- reason: {
- serializedName: "reason",
+ createdAt: {
+ serializedName: "createdAt",
type: {
- name: "String"
+ name: "DateTime"
}
},
- message: {
- serializedName: "message",
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const StorageAccount: msRest.CompositeMapper = {
- serializedName: "StorageAccount",
- type: {
- name: "Composite",
- className: "StorageAccount",
- modelProperties: {
- id: {
- serializedName: "id",
+ },
+ lastModifiedByType: {
+ serializedName: "lastModifiedByType",
type: {
name: "String"
}
},
- type: {
- required: true,
- serializedName: "type",
+ lastModifiedAt: {
+ serializedName: "lastModifiedAt",
type: {
- name: "String"
+ name: "DateTime"
}
}
}
}
};
-export const SyncStorageKeysInput: msRest.CompositeMapper = {
- serializedName: "SyncStorageKeysInput",
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
type: {
name: "Composite",
- className: "SyncStorageKeysInput",
+ className: "Resource",
modelProperties: {
id: {
+ readOnly: true,
serializedName: "id",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const KeyVaultProperties: msRest.CompositeMapper = {
- serializedName: "KeyVaultProperties",
- type: {
- name: "Composite",
- className: "KeyVaultProperties",
- modelProperties: {
- keyIdentifier: {
- serializedName: "keyIdentifier",
- type: {
- name: "String"
- }
},
- currentKeyIdentifier: {
+ name: {
readOnly: true,
- serializedName: "currentKeyIdentifier",
+ serializedName: "name",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const AccountEncryption: msRest.CompositeMapper = {
- serializedName: "AccountEncryption",
- type: {
- name: "Composite",
- className: "AccountEncryption",
- modelProperties: {
+ },
type: {
- required: true,
+ readOnly: true,
serializedName: "type",
type: {
name: "String"
}
- },
- keyVaultProperties: {
- serializedName: "keyVaultProperties",
- type: {
- name: "Composite",
- className: "KeyVaultProperties"
- }
}
}
}
};
-export const MediaServiceIdentity: msRest.CompositeMapper = {
- serializedName: "MediaServiceIdentity",
+export const TrackedResource: msRest.CompositeMapper = {
+ serializedName: "TrackedResource",
type: {
name: "Composite",
- className: "MediaServiceIdentity",
+ className: "TrackedResource",
modelProperties: {
- type: {
- required: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- principalId: {
- readOnly: true,
- serializedName: "principalId",
+ ...Resource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
}
},
- tenantId: {
- readOnly: true,
- serializedName: "tenantId",
+ location: {
+ required: true,
+ serializedName: "location",
type: {
name: "String"
}
@@ -854,6 +755,20 @@ export const MediaService: msRest.CompositeMapper = {
className: "AccountEncryption"
}
},
+ keyDelivery: {
+ serializedName: "properties.keyDelivery",
+ type: {
+ name: "Composite",
+ className: "KeyDelivery"
+ }
+ },
+ publicNetworkAccess: {
+ nullable: true,
+ serializedName: "properties.publicNetworkAccess",
+ type: {
+ name: "String"
+ }
+ },
identity: {
serializedName: "identity",
type: {
@@ -873,18 +788,94 @@ export const MediaService: msRest.CompositeMapper = {
}
};
-export const ListEdgePoliciesInput: msRest.CompositeMapper = {
- serializedName: "ListEdgePoliciesInput",
+export const MediaServiceUpdate: msRest.CompositeMapper = {
+ serializedName: "MediaServiceUpdate",
type: {
name: "Composite",
- className: "ListEdgePoliciesInput",
+ className: "MediaServiceUpdate",
modelProperties: {
- deviceId: {
- serializedName: "deviceId",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
- }
- }
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ mediaServiceId: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "properties.mediaServiceId",
+ type: {
+ name: "Uuid"
+ }
+ },
+ storageAccounts: {
+ serializedName: "properties.storageAccounts",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "StorageAccount"
+ }
+ }
+ }
+ },
+ storageAuthentication: {
+ nullable: true,
+ serializedName: "properties.storageAuthentication",
+ type: {
+ name: "String"
+ }
+ },
+ encryption: {
+ serializedName: "properties.encryption",
+ type: {
+ name: "Composite",
+ className: "AccountEncryption"
+ }
+ },
+ keyDelivery: {
+ serializedName: "properties.keyDelivery",
+ type: {
+ name: "Composite",
+ className: "KeyDelivery"
+ }
+ },
+ publicNetworkAccess: {
+ nullable: true,
+ serializedName: "properties.publicNetworkAccess",
+ type: {
+ name: "String"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "MediaServiceIdentity"
+ }
+ }
+ }
+ }
+};
+
+export const ListEdgePoliciesInput: msRest.CompositeMapper = {
+ serializedName: "ListEdgePoliciesInput",
+ type: {
+ name: "Composite",
+ className: "ListEdgePoliciesInput",
+ modelProperties: {
+ deviceId: {
+ serializedName: "deviceId",
+ type: {
+ name: "String"
+ }
+ }
}
}
};
@@ -969,6 +960,28 @@ export const EdgePolicies: msRest.CompositeMapper = {
}
};
+export const OperationCollection: msRest.CompositeMapper = {
+ serializedName: "OperationCollection",
+ type: {
+ name: "Composite",
+ className: "OperationCollection",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
export const CheckNameAvailabilityInput: msRest.CompositeMapper = {
serializedName: "CheckNameAvailabilityInput",
type: {
@@ -991,6 +1004,133 @@ export const CheckNameAvailabilityInput: msRest.CompositeMapper = {
}
};
+export const ErrorAdditionalInfo: msRest.CompositeMapper = {
+ serializedName: "ErrorAdditionalInfo",
+ type: {
+ name: "Composite",
+ className: "ErrorAdditionalInfo",
+ modelProperties: {
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ info: {
+ readOnly: true,
+ serializedName: "info",
+ type: {
+ name: "Object"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorDetail: msRest.CompositeMapper = {
+ serializedName: "ErrorDetail",
+ type: {
+ name: "Composite",
+ className: "ErrorDetail",
+ modelProperties: {
+ code: {
+ readOnly: true,
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ readOnly: true,
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ readOnly: true,
+ serializedName: "target",
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ readOnly: true,
+ serializedName: "details",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ },
+ additionalInfo: {
+ readOnly: true,
+ serializedName: "additionalInfo",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorAdditionalInfo"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: msRest.CompositeMapper = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ }
+};
+
+export const ProxyResource: msRest.CompositeMapper = {
+ serializedName: "ProxyResource",
+ type: {
+ name: "Composite",
+ className: "ProxyResource",
+ modelProperties: {
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
+export const AzureEntityResource: msRest.CompositeMapper = {
+ serializedName: "AzureEntityResource",
+ type: {
+ name: "Composite",
+ className: "AzureEntityResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ etag: {
+ readOnly: true,
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = {
serializedName: "PrivateLinkServiceConnectionState",
type: {
@@ -1153,53 +1293,215 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = {
}
};
-export const AssetContainerSas: msRest.CompositeMapper = {
- serializedName: "AssetContainerSas",
+export const PresentationTimeRange: msRest.CompositeMapper = {
+ serializedName: "PresentationTimeRange",
type: {
name: "Composite",
- className: "AssetContainerSas",
+ className: "PresentationTimeRange",
modelProperties: {
- assetContainerSasUrls: {
- serializedName: "assetContainerSasUrls",
+ startTimestamp: {
+ serializedName: "startTimestamp",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "Number"
}
- }
- }
- }
-};
-
-export const AssetFileEncryptionMetadata: msRest.CompositeMapper = {
- serializedName: "AssetFileEncryptionMetadata",
- type: {
- name: "Composite",
- className: "AssetFileEncryptionMetadata",
- modelProperties: {
- initializationVector: {
- serializedName: "initializationVector",
+ },
+ endTimestamp: {
+ serializedName: "endTimestamp",
type: {
- name: "String"
+ name: "Number"
}
},
- assetFileName: {
- serializedName: "assetFileName",
+ presentationWindowDuration: {
+ serializedName: "presentationWindowDuration",
type: {
- name: "String"
+ name: "Number"
}
},
- assetFileId: {
- required: true,
- serializedName: "assetFileId",
+ liveBackoffDuration: {
+ serializedName: "liveBackoffDuration",
type: {
- name: "Uuid"
+ name: "Number"
}
- }
- }
+ },
+ timescale: {
+ serializedName: "timescale",
+ type: {
+ name: "Number"
+ }
+ },
+ forceEndTimestamp: {
+ serializedName: "forceEndTimestamp",
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const FilterTrackPropertyCondition: msRest.CompositeMapper = {
+ serializedName: "FilterTrackPropertyCondition",
+ type: {
+ name: "Composite",
+ className: "FilterTrackPropertyCondition",
+ modelProperties: {
+ property: {
+ required: true,
+ serializedName: "property",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ required: true,
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const FirstQuality: msRest.CompositeMapper = {
+ serializedName: "FirstQuality",
+ type: {
+ name: "Composite",
+ className: "FirstQuality",
+ modelProperties: {
+ bitrate: {
+ required: true,
+ serializedName: "bitrate",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const FilterTrackSelection: msRest.CompositeMapper = {
+ serializedName: "FilterTrackSelection",
+ type: {
+ name: "Composite",
+ className: "FilterTrackSelection",
+ modelProperties: {
+ trackSelections: {
+ required: true,
+ serializedName: "trackSelections",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "FilterTrackPropertyCondition"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AccountFilter: msRest.CompositeMapper = {
+ serializedName: "AccountFilter",
+ type: {
+ name: "Composite",
+ className: "AccountFilter",
+ modelProperties: {
+ ...ProxyResource.type.modelProperties,
+ presentationTimeRange: {
+ serializedName: "properties.presentationTimeRange",
+ type: {
+ name: "Composite",
+ className: "PresentationTimeRange"
+ }
+ },
+ firstQuality: {
+ serializedName: "properties.firstQuality",
+ type: {
+ name: "Composite",
+ className: "FirstQuality"
+ }
+ },
+ tracks: {
+ serializedName: "properties.tracks",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "FilterTrackSelection"
+ }
+ }
+ }
+ },
+ systemData: {
+ readOnly: true,
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
+
+export const AssetContainerSas: msRest.CompositeMapper = {
+ serializedName: "AssetContainerSas",
+ type: {
+ name: "Composite",
+ className: "AssetContainerSas",
+ modelProperties: {
+ assetContainerSasUrls: {
+ serializedName: "assetContainerSasUrls",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AssetFileEncryptionMetadata: msRest.CompositeMapper = {
+ serializedName: "AssetFileEncryptionMetadata",
+ type: {
+ name: "Composite",
+ className: "AssetFileEncryptionMetadata",
+ modelProperties: {
+ initializationVector: {
+ serializedName: "initializationVector",
+ type: {
+ name: "String"
+ }
+ },
+ assetFileName: {
+ serializedName: "assetFileName",
+ type: {
+ name: "String"
+ }
+ },
+ assetFileId: {
+ required: true,
+ serializedName: "assetFileId",
+ type: {
+ name: "Uuid"
+ }
+ }
+ }
}
};
@@ -1824,2047 +2126,192 @@ export const ContentKeyPolicyRestrictionTokenKey: msRest.CompositeMapper = {
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ContentKeyPolicySymmetricTokenKey: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyRestrictionTokenKey",
- className: "ContentKeyPolicySymmetricTokenKey",
- modelProperties: {
- ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
- keyValue: {
- required: true,
- nullable: true,
- serializedName: "keyValue",
- type: {
- name: "ByteArray"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyRsaTokenKey: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyRsaTokenKey",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyRestrictionTokenKey",
- className: "ContentKeyPolicyRsaTokenKey",
- modelProperties: {
- ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
- exponent: {
- required: true,
- nullable: true,
- serializedName: "exponent",
- type: {
- name: "ByteArray"
- }
- },
- modulus: {
- required: true,
- nullable: true,
- serializedName: "modulus",
- type: {
- name: "ByteArray"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyX509CertificateTokenKey: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyRestrictionTokenKey",
- className: "ContentKeyPolicyX509CertificateTokenKey",
- modelProperties: {
- ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
- rawBody: {
- required: true,
- nullable: true,
- serializedName: "rawBody",
- type: {
- name: "ByteArray"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyTokenRestriction: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyTokenRestriction",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyRestriction.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyRestriction",
- className: "ContentKeyPolicyTokenRestriction",
- modelProperties: {
- ...ContentKeyPolicyRestriction.type.modelProperties,
- issuer: {
- required: true,
- serializedName: "issuer",
- type: {
- name: "String"
- }
- },
- audience: {
- required: true,
- serializedName: "audience",
- type: {
- name: "String"
- }
- },
- primaryVerificationKey: {
- required: true,
- serializedName: "primaryVerificationKey",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyRestrictionTokenKey"
- }
- },
- alternateVerificationKeys: {
- serializedName: "alternateVerificationKeys",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContentKeyPolicyRestrictionTokenKey"
- }
- }
- }
- },
- requiredClaims: {
- serializedName: "requiredClaims",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContentKeyPolicyTokenClaim"
- }
- }
- }
- },
- restrictionTokenType: {
- required: true,
- serializedName: "restrictionTokenType",
- type: {
- name: "String"
- }
- },
- openIdConnectDiscoveryDocument: {
- serializedName: "openIdConnectDiscoveryDocument",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyClearKeyConfiguration: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyConfiguration",
- className: "ContentKeyPolicyClearKeyConfiguration",
- modelProperties: {
- ...ContentKeyPolicyConfiguration.type.modelProperties
- }
- }
-};
-
-export const ContentKeyPolicyUnknownConfiguration: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyConfiguration",
- className: "ContentKeyPolicyUnknownConfiguration",
- modelProperties: {
- ...ContentKeyPolicyConfiguration.type.modelProperties
- }
- }
-};
-
-export const ContentKeyPolicyWidevineConfiguration: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyConfiguration",
- className: "ContentKeyPolicyWidevineConfiguration",
- modelProperties: {
- ...ContentKeyPolicyConfiguration.type.modelProperties,
- widevineTemplate: {
- required: true,
- serializedName: "widevineTemplate",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyPlayReadyConfiguration: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyConfiguration",
- className: "ContentKeyPolicyPlayReadyConfiguration",
- modelProperties: {
- ...ContentKeyPolicyConfiguration.type.modelProperties,
- licenses: {
- required: true,
- serializedName: "licenses",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContentKeyPolicyPlayReadyLicense"
- }
- }
- }
- },
- responseCustomData: {
- serializedName: "responseCustomData",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyFairPlayOfflineRentalConfiguration: msRest.CompositeMapper = {
- serializedName: "ContentKeyPolicyFairPlayOfflineRentalConfiguration",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyFairPlayOfflineRentalConfiguration",
- modelProperties: {
- playbackDurationSeconds: {
- required: true,
- serializedName: "playbackDurationSeconds",
- type: {
- name: "Number"
- }
- },
- storageDurationSeconds: {
- required: true,
- serializedName: "storageDurationSeconds",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyFairPlayConfiguration: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
- uberParent: "ContentKeyPolicyConfiguration",
- className: "ContentKeyPolicyFairPlayConfiguration",
- modelProperties: {
- ...ContentKeyPolicyConfiguration.type.modelProperties,
- ask: {
- required: true,
- nullable: true,
- serializedName: "ask",
- type: {
- name: "ByteArray"
- }
- },
- fairPlayPfxPassword: {
- required: true,
- nullable: true,
- serializedName: "fairPlayPfxPassword",
- type: {
- name: "String"
- }
- },
- fairPlayPfx: {
- required: true,
- nullable: true,
- serializedName: "fairPlayPfx",
- type: {
- name: "String"
- }
- },
- rentalAndLeaseKeyType: {
- required: true,
- serializedName: "rentalAndLeaseKeyType",
- type: {
- name: "String"
- }
- },
- rentalDuration: {
- required: true,
- serializedName: "rentalDuration",
- type: {
- name: "Number"
- }
- },
- offlineRentalConfiguration: {
- serializedName: "offlineRentalConfiguration",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyFairPlayOfflineRentalConfiguration"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyOption: msRest.CompositeMapper = {
- serializedName: "ContentKeyPolicyOption",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyOption",
- modelProperties: {
- policyOptionId: {
- nullable: false,
- readOnly: true,
- serializedName: "policyOptionId",
- type: {
- name: "Uuid"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- configuration: {
- required: true,
- serializedName: "configuration",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyConfiguration"
- }
- },
- restriction: {
- required: true,
- serializedName: "restriction",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyRestriction"
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicyProperties: msRest.CompositeMapper = {
- serializedName: "ContentKeyPolicyProperties",
- type: {
- name: "Composite",
- className: "ContentKeyPolicyProperties",
- modelProperties: {
- policyId: {
- nullable: false,
- readOnly: true,
- serializedName: "policyId",
- type: {
- name: "Uuid"
- }
- },
- created: {
- nullable: false,
- readOnly: true,
- serializedName: "created",
- type: {
- name: "DateTime"
- }
- },
- lastModified: {
- nullable: false,
- readOnly: true,
- serializedName: "lastModified",
- type: {
- name: "DateTime"
- }
- },
- description: {
- serializedName: "description",
- type: {
- name: "String"
- }
- },
- options: {
- required: true,
- serializedName: "options",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContentKeyPolicyOption"
- }
- }
- }
- }
- }
- }
-};
-
-export const ContentKeyPolicy: msRest.CompositeMapper = {
- serializedName: "ContentKeyPolicy",
- type: {
- name: "Composite",
- className: "ContentKeyPolicy",
- modelProperties: {
- ...ProxyResource.type.modelProperties,
- policyId: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.policyId",
- type: {
- name: "Uuid"
- }
- },
- created: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.created",
- type: {
- name: "DateTime"
- }
- },
- lastModified: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.lastModified",
- type: {
- name: "DateTime"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- options: {
- required: true,
- serializedName: "properties.options",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ContentKeyPolicyOption"
- }
- }
- }
- },
- systemData: {
- readOnly: true,
- serializedName: "systemData",
- type: {
- name: "Composite",
- className: "SystemData"
- }
- }
- }
- }
-};
-
-export const Preset: msRest.CompositeMapper = {
- serializedName: "Preset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "Preset",
- className: "Preset",
- modelProperties: {
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Codec: msRest.CompositeMapper = {
- serializedName: "Codec",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "Codec",
- className: "Codec",
- modelProperties: {
- label: {
- serializedName: "label",
- type: {
- name: "String"
- }
- },
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Audio: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.Audio",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "Audio",
- modelProperties: {
- ...Codec.type.modelProperties,
- channels: {
- serializedName: "channels",
- type: {
- name: "Number"
- }
- },
- samplingRate: {
- serializedName: "samplingRate",
- type: {
- name: "Number"
- }
- },
- bitrate: {
- serializedName: "bitrate",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const AacAudio: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.AacAudio",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "AacAudio",
- modelProperties: {
- ...Audio.type.modelProperties,
- profile: {
- serializedName: "profile",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Layer: msRest.CompositeMapper = {
- serializedName: "Layer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "Layer",
- className: "Layer",
- modelProperties: {
- width: {
- serializedName: "width",
- type: {
- name: "String"
- }
- },
- height: {
- serializedName: "height",
- type: {
- name: "String"
- }
- },
- label: {
- serializedName: "label",
- type: {
- name: "String"
- }
- },
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const H265VideoLayer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.H265VideoLayer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "H265VideoLayer",
- modelProperties: {
- ...Layer.type.modelProperties,
- bitrate: {
- required: true,
- serializedName: "bitrate",
- type: {
- name: "Number"
- }
- },
- maxBitrate: {
- serializedName: "maxBitrate",
- type: {
- name: "Number"
- }
- },
- bFrames: {
- serializedName: "bFrames",
- type: {
- name: "Number"
- }
- },
- frameRate: {
- serializedName: "frameRate",
- type: {
- name: "String"
- }
- },
- slices: {
- serializedName: "slices",
- type: {
- name: "Number"
- }
- },
- adaptiveBFrame: {
- serializedName: "adaptiveBFrame",
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const H265Layer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.H265Layer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "H265Layer",
- modelProperties: {
- ...H265VideoLayer.type.modelProperties,
- profile: {
- serializedName: "profile",
- type: {
- name: "String"
- }
- },
- level: {
- serializedName: "level",
- type: {
- name: "String"
- }
- },
- bufferWindow: {
- serializedName: "bufferWindow",
- type: {
- name: "TimeSpan"
- }
- },
- referenceFrames: {
- serializedName: "referenceFrames",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const Video: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.Video",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "Video",
- modelProperties: {
- ...Codec.type.modelProperties,
- keyFrameInterval: {
- serializedName: "keyFrameInterval",
- type: {
- name: "TimeSpan"
- }
- },
- stretchMode: {
- serializedName: "stretchMode",
- type: {
- name: "String"
- }
- },
- syncMode: {
- serializedName: "syncMode",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const H265Video: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.H265Video",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "H265Video",
- modelProperties: {
- ...Video.type.modelProperties,
- sceneChangeDetection: {
- serializedName: "sceneChangeDetection",
- type: {
- name: "Boolean"
- }
- },
- complexity: {
- serializedName: "complexity",
- type: {
- name: "String"
- }
- },
- layers: {
- serializedName: "layers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "H265Layer"
- }
- }
- }
- }
- }
- }
-};
-
-export const TrackDescriptor: msRest.CompositeMapper = {
- serializedName: "TrackDescriptor",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "TrackDescriptor",
- className: "TrackDescriptor",
- modelProperties: {
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const AudioTrackDescriptor: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.AudioTrackDescriptor",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "AudioTrackDescriptor",
- modelProperties: {
- ...TrackDescriptor.type.modelProperties,
- channelMapping: {
- serializedName: "channelMapping",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SelectAudioTrackByAttribute: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.SelectAudioTrackByAttribute",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "SelectAudioTrackByAttribute",
- modelProperties: {
- ...AudioTrackDescriptor.type.modelProperties,
- attribute: {
- required: true,
- serializedName: "attribute",
- type: {
- name: "String"
- }
- },
- filter: {
- required: true,
- serializedName: "filter",
- type: {
- name: "String"
- }
- },
- filterValue: {
- serializedName: "filterValue",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SelectAudioTrackById: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.SelectAudioTrackById",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "SelectAudioTrackById",
- modelProperties: {
- ...AudioTrackDescriptor.type.modelProperties,
- trackId: {
- required: true,
- serializedName: "trackId",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const InputDefinition: msRest.CompositeMapper = {
- serializedName: "InputDefinition",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "InputDefinition",
- className: "InputDefinition",
- modelProperties: {
- includedTracks: {
- serializedName: "includedTracks",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TrackDescriptor"
- }
- }
- }
- },
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const FromAllInputFile: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.FromAllInputFile",
- type: {
- name: "Composite",
- polymorphicDiscriminator: InputDefinition.type.polymorphicDiscriminator,
- uberParent: "InputDefinition",
- className: "FromAllInputFile",
- modelProperties: {
- ...InputDefinition.type.modelProperties
- }
- }
-};
-
-export const FromEachInputFile: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.FromEachInputFile",
- type: {
- name: "Composite",
- polymorphicDiscriminator: InputDefinition.type.polymorphicDiscriminator,
- uberParent: "InputDefinition",
- className: "FromEachInputFile",
- modelProperties: {
- ...InputDefinition.type.modelProperties
- }
- }
-};
-
-export const InputFile: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.InputFile",
- type: {
- name: "Composite",
- polymorphicDiscriminator: InputDefinition.type.polymorphicDiscriminator,
- uberParent: "InputDefinition",
- className: "InputFile",
- modelProperties: {
- ...InputDefinition.type.modelProperties,
- filename: {
- serializedName: "filename",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const FaceDetectorPreset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.FaceDetectorPreset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Preset.type.polymorphicDiscriminator,
- uberParent: "Preset",
- className: "FaceDetectorPreset",
- modelProperties: {
- ...Preset.type.modelProperties,
- resolution: {
- serializedName: "resolution",
- type: {
- name: "String"
- }
- },
- mode: {
- serializedName: "mode",
- type: {
- name: "String"
- }
- },
- blurType: {
- serializedName: "blurType",
- type: {
- name: "String"
- }
- },
- experimentalOptions: {
- serializedName: "experimentalOptions",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
-export const AudioAnalyzerPreset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.AudioAnalyzerPreset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Preset.type.polymorphicDiscriminator,
- uberParent: "Preset",
- className: "AudioAnalyzerPreset",
- modelProperties: {
- ...Preset.type.modelProperties,
- audioLanguage: {
- serializedName: "audioLanguage",
- type: {
- name: "String"
- }
- },
- mode: {
- serializedName: "mode",
- type: {
- name: "String"
- }
- },
- experimentalOptions: {
- serializedName: "experimentalOptions",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
-export const Overlay: msRest.CompositeMapper = {
- serializedName: "Overlay",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "Overlay",
- className: "Overlay",
- modelProperties: {
- inputLabel: {
- required: true,
- serializedName: "inputLabel",
- type: {
- name: "String"
- }
- },
- start: {
- serializedName: "start",
- type: {
- name: "TimeSpan"
- }
- },
- end: {
- serializedName: "end",
- type: {
- name: "TimeSpan"
- }
- },
- fadeInDuration: {
- serializedName: "fadeInDuration",
- type: {
- name: "TimeSpan"
- }
- },
- fadeOutDuration: {
- serializedName: "fadeOutDuration",
- type: {
- name: "TimeSpan"
- }
- },
- audioGainLevel: {
- serializedName: "audioGainLevel",
- type: {
- name: "Number"
- }
- },
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const AudioOverlay: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.AudioOverlay",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Overlay.type.polymorphicDiscriminator,
- uberParent: "Overlay",
- className: "AudioOverlay",
- modelProperties: {
- ...Overlay.type.modelProperties
- }
- }
-};
-
-export const CopyVideo: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.CopyVideo",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "CopyVideo",
- modelProperties: {
- ...Codec.type.modelProperties
- }
- }
-};
-
-export const Image: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.Image",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "Image",
- modelProperties: {
- ...Video.type.modelProperties,
- start: {
- required: true,
- serializedName: "start",
- type: {
- name: "String"
- }
- },
- step: {
- serializedName: "step",
- type: {
- name: "String"
- }
- },
- range: {
- serializedName: "range",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Format: msRest.CompositeMapper = {
- serializedName: "Format",
- type: {
- name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "Format",
- className: "Format",
- modelProperties: {
- filenamePattern: {
- required: true,
- serializedName: "filenamePattern",
- type: {
- name: "String"
- }
- },
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ImageFormat: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.ImageFormat",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "ImageFormat",
- modelProperties: {
- ...Format.type.modelProperties
- }
- }
-};
-
-export const JpgFormat: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JpgFormat",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "JpgFormat",
- modelProperties: {
- ...ImageFormat.type.modelProperties
- }
- }
-};
-
-export const PngFormat: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.PngFormat",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "PngFormat",
- modelProperties: {
- ...ImageFormat.type.modelProperties
- }
- }
-};
-
-export const CopyAudio: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.CopyAudio",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "CopyAudio",
- modelProperties: {
- ...Codec.type.modelProperties
- }
- }
-};
-
-export const Deinterlace: msRest.CompositeMapper = {
- serializedName: "Deinterlace",
- type: {
- name: "Composite",
- className: "Deinterlace",
- modelProperties: {
- parity: {
- serializedName: "parity",
- type: {
- name: "String"
- }
- },
- mode: {
- serializedName: "mode",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Rectangle: msRest.CompositeMapper = {
- serializedName: "Rectangle",
- type: {
- name: "Composite",
- className: "Rectangle",
- modelProperties: {
- left: {
- serializedName: "left",
- type: {
- name: "String"
- }
- },
- top: {
- serializedName: "top",
- type: {
- name: "String"
- }
- },
- width: {
- serializedName: "width",
- type: {
- name: "String"
- }
- },
- height: {
- serializedName: "height",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Filters: msRest.CompositeMapper = {
- serializedName: "Filters",
- type: {
- name: "Composite",
- className: "Filters",
- modelProperties: {
- deinterlace: {
- serializedName: "deinterlace",
- type: {
- name: "Composite",
- className: "Deinterlace"
- }
- },
- rotation: {
- serializedName: "rotation",
- type: {
- name: "String"
- }
- },
- crop: {
- serializedName: "crop",
- type: {
- name: "Composite",
- className: "Rectangle"
- }
- },
- overlays: {
- serializedName: "overlays",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Overlay"
- }
- }
- }
- }
- }
- }
-};
-
-export const VideoLayer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.VideoLayer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "VideoLayer",
- modelProperties: {
- ...Layer.type.modelProperties,
- bitrate: {
- required: true,
- serializedName: "bitrate",
- type: {
- name: "Number"
- }
- },
- maxBitrate: {
- serializedName: "maxBitrate",
- type: {
- name: "Number"
- }
- },
- bFrames: {
- serializedName: "bFrames",
- type: {
- name: "Number"
- }
- },
- frameRate: {
- serializedName: "frameRate",
- type: {
- name: "String"
- }
- },
- slices: {
- serializedName: "slices",
- type: {
- name: "Number"
- }
- },
- adaptiveBFrame: {
- serializedName: "adaptiveBFrame",
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const H264Layer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.H264Layer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "H264Layer",
- modelProperties: {
- ...VideoLayer.type.modelProperties,
- profile: {
- serializedName: "profile",
- type: {
- name: "String"
- }
- },
- level: {
- serializedName: "level",
- type: {
- name: "String"
- }
- },
- bufferWindow: {
- serializedName: "bufferWindow",
- type: {
- name: "TimeSpan"
- }
- },
- referenceFrames: {
- serializedName: "referenceFrames",
- type: {
- name: "Number"
- }
- },
- entropyMode: {
- serializedName: "entropyMode",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const H264Video: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.H264Video",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "H264Video",
- modelProperties: {
- ...Video.type.modelProperties,
- sceneChangeDetection: {
- serializedName: "sceneChangeDetection",
- type: {
- name: "Boolean"
- }
- },
- complexity: {
- serializedName: "complexity",
- type: {
- name: "String"
- }
- },
- layers: {
- serializedName: "layers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "H264Layer"
- }
- }
- }
- }
- }
- }
-};
-
-export const JpgLayer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JpgLayer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "JpgLayer",
- modelProperties: {
- ...Layer.type.modelProperties,
- quality: {
- serializedName: "quality",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const JpgImage: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JpgImage",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "JpgImage",
- modelProperties: {
- ...Image.type.modelProperties,
- layers: {
- serializedName: "layers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "JpgLayer"
- }
- }
- }
- },
- spriteColumn: {
- serializedName: "spriteColumn",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const OutputFile: msRest.CompositeMapper = {
- serializedName: "OutputFile",
- type: {
- name: "Composite",
- className: "OutputFile",
- modelProperties: {
- labels: {
- required: true,
- serializedName: "labels",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
-export const MultiBitrateFormat: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.MultiBitrateFormat",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "MultiBitrateFormat",
- modelProperties: {
- ...Format.type.modelProperties,
- outputFiles: {
- serializedName: "outputFiles",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OutputFile"
- }
- }
- }
- }
- }
- }
-};
-
-export const Mp4Format: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.Mp4Format",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "Mp4Format",
- modelProperties: {
- ...MultiBitrateFormat.type.modelProperties
- }
- }
-};
-
-export const PngLayer: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.PngLayer",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Layer.type.polymorphicDiscriminator,
- uberParent: "Layer",
- className: "PngLayer",
- modelProperties: {
- ...Layer.type.modelProperties
- }
- }
-};
-
-export const PngImage: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.PngImage",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Codec.type.polymorphicDiscriminator,
- uberParent: "Codec",
- className: "PngImage",
- modelProperties: {
- ...Image.type.modelProperties,
- layers: {
- serializedName: "layers",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PngLayer"
- }
- }
- }
- }
- }
- }
-};
-
-export const BuiltInStandardEncoderPreset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.BuiltInStandardEncoderPreset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Preset.type.polymorphicDiscriminator,
- uberParent: "Preset",
- className: "BuiltInStandardEncoderPreset",
- modelProperties: {
- ...Preset.type.modelProperties,
- presetName: {
- required: true,
- serializedName: "presetName",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const StandardEncoderPreset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.StandardEncoderPreset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Preset.type.polymorphicDiscriminator,
- uberParent: "Preset",
- className: "StandardEncoderPreset",
- modelProperties: {
- ...Preset.type.modelProperties,
- filters: {
- serializedName: "filters",
- type: {
- name: "Composite",
- className: "Filters"
- }
- },
- codecs: {
- required: true,
- serializedName: "codecs",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Codec"
- }
- }
- }
- },
- formats: {
- required: true,
- serializedName: "formats",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Format"
- }
- }
- }
- }
- }
- }
-};
-
-export const VideoAnalyzerPreset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.VideoAnalyzerPreset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Preset.type.polymorphicDiscriminator,
- uberParent: "Preset",
- className: "VideoAnalyzerPreset",
- modelProperties: {
- ...AudioAnalyzerPreset.type.modelProperties,
- insightsToExtract: {
- serializedName: "insightsToExtract",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const TransportStreamFormat: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.TransportStreamFormat",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Format.type.polymorphicDiscriminator,
- uberParent: "Format",
- className: "TransportStreamFormat",
- modelProperties: {
- ...MultiBitrateFormat.type.modelProperties
- }
- }
-};
-
-export const VideoOverlay: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.VideoOverlay",
- type: {
- name: "Composite",
- polymorphicDiscriminator: Overlay.type.polymorphicDiscriminator,
- uberParent: "Overlay",
- className: "VideoOverlay",
- modelProperties: {
- ...Overlay.type.modelProperties,
- position: {
- serializedName: "position",
- type: {
- name: "Composite",
- className: "Rectangle"
- }
- },
- opacity: {
- serializedName: "opacity",
- type: {
- name: "Number"
- }
- },
- cropRectangle: {
- serializedName: "cropRectangle",
- type: {
- name: "Composite",
- className: "Rectangle"
- }
- }
- }
- }
-};
-
-export const VideoTrackDescriptor: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.VideoTrackDescriptor",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "VideoTrackDescriptor",
- modelProperties: {
- ...TrackDescriptor.type.modelProperties
- }
- }
-};
-
-export const SelectVideoTrackByAttribute: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.SelectVideoTrackByAttribute",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "SelectVideoTrackByAttribute",
- modelProperties: {
- ...VideoTrackDescriptor.type.modelProperties,
- attribute: {
- required: true,
- serializedName: "attribute",
- type: {
- name: "String"
- }
- },
- filter: {
- required: true,
- serializedName: "filter",
- type: {
- name: "String"
- }
- },
- filterValue: {
- serializedName: "filterValue",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SelectVideoTrackById: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.SelectVideoTrackById",
- type: {
- name: "Composite",
- polymorphicDiscriminator: TrackDescriptor.type.polymorphicDiscriminator,
- uberParent: "TrackDescriptor",
- className: "SelectVideoTrackById",
- modelProperties: {
- ...VideoTrackDescriptor.type.modelProperties,
- trackId: {
- required: true,
- serializedName: "trackId",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const TransformOutput: msRest.CompositeMapper = {
- serializedName: "TransformOutput",
- type: {
- name: "Composite",
- className: "TransformOutput",
- modelProperties: {
- onError: {
- serializedName: "onError",
- type: {
- name: "String"
- }
- },
- relativePriority: {
- serializedName: "relativePriority",
- type: {
- name: "String"
- }
- },
- preset: {
- required: true,
- serializedName: "preset",
- type: {
- name: "Composite",
- className: "Preset"
- }
- }
- }
- }
-};
-
-export const Transform: msRest.CompositeMapper = {
- serializedName: "Transform",
- type: {
- name: "Composite",
- className: "Transform",
- modelProperties: {
- ...ProxyResource.type.modelProperties,
- created: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.created",
- type: {
- name: "DateTime"
- }
- },
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- lastModified: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.lastModified",
- type: {
- name: "DateTime"
- }
- },
- outputs: {
- required: true,
- serializedName: "properties.outputs",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "TransformOutput"
- }
- }
- }
- },
- systemData: {
- readOnly: true,
- serializedName: "systemData",
+ }
+ }
+ }
+};
+
+export const ContentKeyPolicySymmetricTokenKey: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyRestrictionTokenKey",
+ className: "ContentKeyPolicySymmetricTokenKey",
+ modelProperties: {
+ ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
+ keyValue: {
+ required: true,
+ nullable: true,
+ serializedName: "keyValue",
type: {
- name: "Composite",
- className: "SystemData"
+ name: "ByteArray"
}
}
}
}
};
-export const JobInput: msRest.CompositeMapper = {
- serializedName: "JobInput",
+export const ContentKeyPolicyRsaTokenKey: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyRsaTokenKey",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "JobInput",
- className: "JobInput",
+ polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyRestrictionTokenKey",
+ className: "ContentKeyPolicyRsaTokenKey",
modelProperties: {
- odatatype: {
+ ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
+ exponent: {
required: true,
- serializedName: "@odata\\.type",
+ nullable: true,
+ serializedName: "exponent",
type: {
- name: "String"
+ name: "ByteArray"
+ }
+ },
+ modulus: {
+ required: true,
+ nullable: true,
+ serializedName: "modulus",
+ type: {
+ name: "ByteArray"
}
}
}
}
};
-export const ClipTime: msRest.CompositeMapper = {
- serializedName: "ClipTime",
+export const ContentKeyPolicyX509CertificateTokenKey: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "ClipTime",
- className: "ClipTime",
+ polymorphicDiscriminator: ContentKeyPolicyRestrictionTokenKey.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyRestrictionTokenKey",
+ className: "ContentKeyPolicyX509CertificateTokenKey",
modelProperties: {
- odatatype: {
+ ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties,
+ rawBody: {
required: true,
- serializedName: "@odata\\.type",
+ nullable: true,
+ serializedName: "rawBody",
type: {
- name: "String"
+ name: "ByteArray"
}
}
}
}
};
-export const JobInputClip: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobInputClip",
+export const ContentKeyPolicyTokenRestriction: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyTokenRestriction",
type: {
name: "Composite",
- polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator,
- uberParent: "JobInput",
- className: "JobInputClip",
+ polymorphicDiscriminator: ContentKeyPolicyRestriction.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyRestriction",
+ className: "ContentKeyPolicyTokenRestriction",
modelProperties: {
- ...JobInput.type.modelProperties,
- files: {
- serializedName: "files",
+ ...ContentKeyPolicyRestriction.type.modelProperties,
+ issuer: {
+ required: true,
+ serializedName: "issuer",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
},
- start: {
- serializedName: "start",
+ audience: {
+ required: true,
+ serializedName: "audience",
type: {
- name: "Composite",
- className: "ClipTime"
+ name: "String"
}
},
- end: {
- serializedName: "end",
+ primaryVerificationKey: {
+ required: true,
+ serializedName: "primaryVerificationKey",
type: {
name: "Composite",
- className: "ClipTime"
+ className: "ContentKeyPolicyRestrictionTokenKey"
}
},
- label: {
- serializedName: "label",
+ alternateVerificationKeys: {
+ serializedName: "alternateVerificationKeys",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContentKeyPolicyRestrictionTokenKey"
+ }
+ }
}
},
- inputDefinitions: {
- serializedName: "inputDefinitions",
+ requiredClaims: {
+ serializedName: "requiredClaims",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "InputDefinition"
+ className: "ContentKeyPolicyTokenClaim"
}
}
}
- }
- }
- }
-};
-
-export const AbsoluteClipTime: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.AbsoluteClipTime",
- type: {
- name: "Composite",
- polymorphicDiscriminator: ClipTime.type.polymorphicDiscriminator,
- uberParent: "ClipTime",
- className: "AbsoluteClipTime",
- modelProperties: {
- ...ClipTime.type.modelProperties,
- time: {
+ },
+ restrictionTokenType: {
required: true,
- serializedName: "time",
+ serializedName: "restrictionTokenType",
type: {
- name: "TimeSpan"
+ name: "String"
+ }
+ },
+ openIdConnectDiscoveryDocument: {
+ serializedName: "openIdConnectDiscoveryDocument",
+ type: {
+ name: "String"
}
}
}
}
};
-export const UtcClipTime: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.UtcClipTime",
+export const ContentKeyPolicyClearKeyConfiguration: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration",
type: {
name: "Composite",
- polymorphicDiscriminator: ClipTime.type.polymorphicDiscriminator,
- uberParent: "ClipTime",
- className: "UtcClipTime",
+ polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyConfiguration",
+ className: "ContentKeyPolicyClearKeyConfiguration",
modelProperties: {
- ...ClipTime.type.modelProperties,
- time: {
- required: true,
- serializedName: "time",
- type: {
- name: "DateTime"
- }
- }
+ ...ContentKeyPolicyConfiguration.type.modelProperties
}
}
};
-export const JobInputs: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobInputs",
+export const ContentKeyPolicyUnknownConfiguration: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration",
type: {
name: "Composite",
- polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator,
- uberParent: "JobInput",
- className: "JobInputs",
+ polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyConfiguration",
+ className: "ContentKeyPolicyUnknownConfiguration",
modelProperties: {
- ...JobInput.type.modelProperties,
- inputs: {
- serializedName: "inputs",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "JobInput"
- }
- }
- }
- }
+ ...ContentKeyPolicyConfiguration.type.modelProperties
}
}
};
-export const JobInputAsset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobInputAsset",
+export const ContentKeyPolicyWidevineConfiguration: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration",
type: {
name: "Composite",
- polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator,
- uberParent: "JobInput",
- className: "JobInputAsset",
+ polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyConfiguration",
+ className: "ContentKeyPolicyWidevineConfiguration",
modelProperties: {
- ...JobInputClip.type.modelProperties,
- assetName: {
+ ...ContentKeyPolicyConfiguration.type.modelProperties,
+ widevineTemplate: {
required: true,
- serializedName: "assetName",
+ serializedName: "widevineTemplate",
type: {
name: "String"
}
@@ -3873,17 +2320,30 @@ export const JobInputAsset: msRest.CompositeMapper = {
}
};
-export const JobInputHttp: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobInputHttp",
+export const ContentKeyPolicyPlayReadyConfiguration: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration",
type: {
name: "Composite",
- polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator,
- uberParent: "JobInput",
- className: "JobInputHttp",
+ polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyConfiguration",
+ className: "ContentKeyPolicyPlayReadyConfiguration",
modelProperties: {
- ...JobInputClip.type.modelProperties,
- baseUri: {
- serializedName: "baseUri",
+ ...ContentKeyPolicyConfiguration.type.modelProperties,
+ licenses: {
+ required: true,
+ serializedName: "licenses",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContentKeyPolicyPlayReadyLicense"
+ }
+ }
+ }
+ },
+ responseCustomData: {
+ serializedName: "responseCustomData",
type: {
name: "String"
}
@@ -3892,189 +2352,173 @@ export const JobInputHttp: msRest.CompositeMapper = {
}
};
-export const JobErrorDetail: msRest.CompositeMapper = {
- serializedName: "JobErrorDetail",
+export const ContentKeyPolicyFairPlayOfflineRentalConfiguration: msRest.CompositeMapper = {
+ serializedName: "ContentKeyPolicyFairPlayOfflineRentalConfiguration",
type: {
name: "Composite",
- className: "JobErrorDetail",
+ className: "ContentKeyPolicyFairPlayOfflineRentalConfiguration",
modelProperties: {
- code: {
- readOnly: true,
- serializedName: "code",
+ playbackDurationSeconds: {
+ required: true,
+ serializedName: "playbackDurationSeconds",
type: {
- name: "String"
+ name: "Number"
}
},
- message: {
- readOnly: true,
- serializedName: "message",
+ storageDurationSeconds: {
+ required: true,
+ serializedName: "storageDurationSeconds",
type: {
- name: "String"
+ name: "Number"
}
}
}
}
};
-export const JobError: msRest.CompositeMapper = {
- serializedName: "JobError",
+export const ContentKeyPolicyFairPlayConfiguration: msRest.CompositeMapper = {
+ serializedName: "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration",
type: {
name: "Composite",
- className: "JobError",
+ polymorphicDiscriminator: ContentKeyPolicyConfiguration.type.polymorphicDiscriminator,
+ uberParent: "ContentKeyPolicyConfiguration",
+ className: "ContentKeyPolicyFairPlayConfiguration",
modelProperties: {
- code: {
- nullable: false,
- readOnly: true,
- serializedName: "code",
+ ...ContentKeyPolicyConfiguration.type.modelProperties,
+ ask: {
+ required: true,
+ nullable: true,
+ serializedName: "ask",
type: {
- name: "String"
+ name: "ByteArray"
}
},
- message: {
- readOnly: true,
- serializedName: "message",
+ fairPlayPfxPassword: {
+ required: true,
+ nullable: true,
+ serializedName: "fairPlayPfxPassword",
type: {
name: "String"
}
},
- category: {
- nullable: false,
- readOnly: true,
- serializedName: "category",
+ fairPlayPfx: {
+ required: true,
+ nullable: true,
+ serializedName: "fairPlayPfx",
type: {
name: "String"
}
},
- retry: {
- nullable: false,
- readOnly: true,
- serializedName: "retry",
+ rentalAndLeaseKeyType: {
+ required: true,
+ serializedName: "rentalAndLeaseKeyType",
type: {
name: "String"
}
},
- details: {
- readOnly: true,
- serializedName: "details",
+ rentalDuration: {
+ required: true,
+ serializedName: "rentalDuration",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "JobErrorDetail"
- }
- }
+ name: "Number"
+ }
+ },
+ offlineRentalConfiguration: {
+ serializedName: "offlineRentalConfiguration",
+ type: {
+ name: "Composite",
+ className: "ContentKeyPolicyFairPlayOfflineRentalConfiguration"
}
}
}
}
};
-export const JobOutput: msRest.CompositeMapper = {
- serializedName: "JobOutput",
+export const ContentKeyPolicyOption: msRest.CompositeMapper = {
+ serializedName: "ContentKeyPolicyOption",
type: {
name: "Composite",
- polymorphicDiscriminator: {
- serializedName: "@odata.type",
- clientName: "odatatype"
- },
- uberParent: "JobOutput",
- className: "JobOutput",
+ className: "ContentKeyPolicyOption",
modelProperties: {
- error: {
+ policyOptionId: {
+ nullable: false,
readOnly: true,
- serializedName: "error",
+ serializedName: "policyOptionId",
type: {
- name: "Composite",
- className: "JobError"
+ name: "Uuid"
}
},
- state: {
- nullable: false,
- readOnly: true,
- serializedName: "state",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
},
- progress: {
- nullable: false,
- readOnly: true,
- serializedName: "progress",
+ configuration: {
+ required: true,
+ serializedName: "configuration",
type: {
- name: "Number"
+ name: "Composite",
+ className: "ContentKeyPolicyConfiguration"
}
},
- label: {
- serializedName: "label",
+ restriction: {
+ required: true,
+ serializedName: "restriction",
type: {
- name: "String"
+ name: "Composite",
+ className: "ContentKeyPolicyRestriction"
+ }
+ }
+ }
+ }
+};
+
+export const ContentKeyPolicyProperties: msRest.CompositeMapper = {
+ serializedName: "ContentKeyPolicyProperties",
+ type: {
+ name: "Composite",
+ className: "ContentKeyPolicyProperties",
+ modelProperties: {
+ policyId: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "policyId",
+ type: {
+ name: "Uuid"
}
},
- startTime: {
- nullable: true,
+ created: {
+ nullable: false,
readOnly: true,
- serializedName: "startTime",
+ serializedName: "created",
type: {
name: "DateTime"
}
},
- endTime: {
- nullable: true,
+ lastModified: {
+ nullable: false,
readOnly: true,
- serializedName: "endTime",
+ serializedName: "lastModified",
type: {
name: "DateTime"
}
},
- odatatype: {
- required: true,
- serializedName: "@odata\\.type",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const JobOutputAsset: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobOutputAsset",
- type: {
- name: "Composite",
- polymorphicDiscriminator: JobOutput.type.polymorphicDiscriminator,
- uberParent: "JobOutput",
- className: "JobOutputAsset",
- modelProperties: {
- ...JobOutput.type.modelProperties,
- assetName: {
+ },
+ options: {
required: true,
- serializedName: "assetName",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const JobInputSequence: msRest.CompositeMapper = {
- serializedName: "#Microsoft.Media.JobInputSequence",
- type: {
- name: "Composite",
- polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator,
- uberParent: "JobInput",
- className: "JobInputSequence",
- modelProperties: {
- ...JobInput.type.modelProperties,
- inputs: {
- serializedName: "inputs",
+ serializedName: "options",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "JobInputClip"
+ className: "ContentKeyPolicyOption"
}
}
}
@@ -4083,13 +2527,21 @@ export const JobInputSequence: msRest.CompositeMapper = {
}
};
-export const Job: msRest.CompositeMapper = {
- serializedName: "Job",
+export const ContentKeyPolicy: msRest.CompositeMapper = {
+ serializedName: "ContentKeyPolicy",
type: {
name: "Composite",
- className: "Job",
+ className: "ContentKeyPolicy",
modelProperties: {
...ProxyResource.type.modelProperties,
+ policyId: {
+ nullable: false,
+ readOnly: true,
+ serializedName: "properties.policyId",
+ type: {
+ name: "Uuid"
+ }
+ },
created: {
nullable: false,
readOnly: true,
@@ -4098,12 +2550,12 @@ export const Job: msRest.CompositeMapper = {
name: "DateTime"
}
},
- state: {
+ lastModified: {
nullable: false,
readOnly: true,
- serializedName: "properties.state",
+ serializedName: "properties.lastModified",
type: {
- name: "String"
+ name: "DateTime"
}
},
description: {
@@ -4112,68 +2564,19 @@ export const Job: msRest.CompositeMapper = {
name: "String"
}
},
- input: {
- required: true,
- serializedName: "properties.input",
- type: {
- name: "Composite",
- className: "JobInput"
- }
- },
- lastModified: {
- nullable: false,
- readOnly: true,
- serializedName: "properties.lastModified",
- type: {
- name: "DateTime"
- }
- },
- outputs: {
+ options: {
required: true,
- serializedName: "properties.outputs",
+ serializedName: "properties.options",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "JobOutput"
- }
- }
- }
- },
- priority: {
- serializedName: "properties.priority",
- type: {
- name: "String"
- }
- },
- correlationData: {
- serializedName: "properties.correlationData",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
+ className: "ContentKeyPolicyOption"
}
}
}
},
- startTime: {
- nullable: true,
- readOnly: true,
- serializedName: "properties.startTime",
- type: {
- name: "DateTime"
- }
- },
- endTime: {
- nullable: true,
- readOnly: true,
- serializedName: "properties.endTime",
- type: {
- name: "DateTime"
- }
- },
systemData: {
readOnly: true,
serializedName: "systemData",
@@ -5013,6 +3416,14 @@ export const LiveOutput: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ systemData: {
+ readOnly: true,
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
}
}
}
@@ -5707,39 +4118,11 @@ export const StreamingEndpoint: msRest.CompositeMapper = {
}
};
-export const AccountFilterCollection: msRest.CompositeMapper = {
- serializedName: "AccountFilterCollection",
- type: {
- name: "Composite",
- className: "AccountFilterCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "AccountFilter"
- }
- }
- }
- },
- odatanextLink: {
- serializedName: "@odata\\.nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const OperationCollection: msRest.CompositeMapper = {
- serializedName: "OperationCollection",
+export const MediaServiceCollection: msRest.CompositeMapper = {
+ serializedName: "MediaServiceCollection",
type: {
name: "Composite",
- className: "OperationCollection",
+ className: "MediaServiceCollection",
modelProperties: {
value: {
serializedName: "",
@@ -5748,7 +4131,7 @@ export const OperationCollection: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "Operation"
+ className: "MediaService"
}
}
}
@@ -5763,11 +4146,11 @@ export const OperationCollection: msRest.CompositeMapper = {
}
};
-export const MediaServiceCollection: msRest.CompositeMapper = {
- serializedName: "MediaServiceCollection",
+export const AccountFilterCollection: msRest.CompositeMapper = {
+ serializedName: "AccountFilterCollection",
type: {
name: "Composite",
- className: "MediaServiceCollection",
+ className: "AccountFilterCollection",
modelProperties: {
value: {
serializedName: "",
@@ -5776,7 +4159,7 @@ export const MediaServiceCollection: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
- className: "MediaService"
+ className: "AccountFilter"
}
}
}
@@ -5875,62 +4258,6 @@ export const ContentKeyPolicyCollection: msRest.CompositeMapper = {
}
};
-export const TransformCollection: msRest.CompositeMapper = {
- serializedName: "TransformCollection",
- type: {
- name: "Composite",
- className: "TransformCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Transform"
- }
- }
- }
- },
- odatanextLink: {
- serializedName: "@odata\\.nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const JobCollection: msRest.CompositeMapper = {
- serializedName: "JobCollection",
- type: {
- name: "Composite",
- className: "JobCollection",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Job"
- }
- }
- }
- },
- odatanextLink: {
- serializedName: "@odata\\.nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const StreamingPolicyCollection: msRest.CompositeMapper = {
serializedName: "StreamingPolicyCollection",
type: {
@@ -6106,62 +4433,6 @@ export const discriminators = {
'ContentKeyPolicyConfiguration.#Microsoft.Media.ContentKeyPolicyUnknownConfiguration' : ContentKeyPolicyUnknownConfiguration,
'ContentKeyPolicyConfiguration.#Microsoft.Media.ContentKeyPolicyWidevineConfiguration' : ContentKeyPolicyWidevineConfiguration,
'ContentKeyPolicyConfiguration.#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration' : ContentKeyPolicyPlayReadyConfiguration,
- 'ContentKeyPolicyConfiguration.#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' : ContentKeyPolicyFairPlayConfiguration,
- 'Preset' : Preset,
- 'Codec' : Codec,
- 'Codec.#Microsoft.Media.Audio' : Audio,
- 'Codec.#Microsoft.Media.AacAudio' : AacAudio,
- 'Layer' : Layer,
- 'Layer.#Microsoft.Media.H265VideoLayer' : H265VideoLayer,
- 'Layer.#Microsoft.Media.H265Layer' : H265Layer,
- 'Codec.#Microsoft.Media.Video' : Video,
- 'Codec.#Microsoft.Media.H265Video' : H265Video,
- 'TrackDescriptor' : TrackDescriptor,
- 'TrackDescriptor.#Microsoft.Media.AudioTrackDescriptor' : AudioTrackDescriptor,
- 'TrackDescriptor.#Microsoft.Media.SelectAudioTrackByAttribute' : SelectAudioTrackByAttribute,
- 'TrackDescriptor.#Microsoft.Media.SelectAudioTrackById' : SelectAudioTrackById,
- 'InputDefinition' : InputDefinition,
- 'InputDefinition.#Microsoft.Media.FromAllInputFile' : FromAllInputFile,
- 'InputDefinition.#Microsoft.Media.FromEachInputFile' : FromEachInputFile,
- 'InputDefinition.#Microsoft.Media.InputFile' : InputFile,
- 'Preset.#Microsoft.Media.FaceDetectorPreset' : FaceDetectorPreset,
- 'Preset.#Microsoft.Media.AudioAnalyzerPreset' : AudioAnalyzerPreset,
- 'Overlay' : Overlay,
- 'Overlay.#Microsoft.Media.AudioOverlay' : AudioOverlay,
- 'Codec.#Microsoft.Media.CopyVideo' : CopyVideo,
- 'Codec.#Microsoft.Media.Image' : Image,
- 'Format' : Format,
- 'Format.#Microsoft.Media.ImageFormat' : ImageFormat,
- 'Format.#Microsoft.Media.JpgFormat' : JpgFormat,
- 'Format.#Microsoft.Media.PngFormat' : PngFormat,
- 'Codec.#Microsoft.Media.CopyAudio' : CopyAudio,
- 'Layer.#Microsoft.Media.VideoLayer' : VideoLayer,
- 'Layer.#Microsoft.Media.H264Layer' : H264Layer,
- 'Codec.#Microsoft.Media.H264Video' : H264Video,
- 'Layer.#Microsoft.Media.JpgLayer' : JpgLayer,
- 'Codec.#Microsoft.Media.JpgImage' : JpgImage,
- 'Format.#Microsoft.Media.MultiBitrateFormat' : MultiBitrateFormat,
- 'Format.#Microsoft.Media.Mp4Format' : Mp4Format,
- 'Layer.#Microsoft.Media.PngLayer' : PngLayer,
- 'Codec.#Microsoft.Media.PngImage' : PngImage,
- 'Preset.#Microsoft.Media.BuiltInStandardEncoderPreset' : BuiltInStandardEncoderPreset,
- 'Preset.#Microsoft.Media.StandardEncoderPreset' : StandardEncoderPreset,
- 'Preset.#Microsoft.Media.VideoAnalyzerPreset' : VideoAnalyzerPreset,
- 'Format.#Microsoft.Media.TransportStreamFormat' : TransportStreamFormat,
- 'Overlay.#Microsoft.Media.VideoOverlay' : VideoOverlay,
- 'TrackDescriptor.#Microsoft.Media.VideoTrackDescriptor' : VideoTrackDescriptor,
- 'TrackDescriptor.#Microsoft.Media.SelectVideoTrackByAttribute' : SelectVideoTrackByAttribute,
- 'TrackDescriptor.#Microsoft.Media.SelectVideoTrackById' : SelectVideoTrackById,
- 'JobInput' : JobInput,
- 'ClipTime' : ClipTime,
- 'JobInput.#Microsoft.Media.JobInputClip' : JobInputClip,
- 'ClipTime.#Microsoft.Media.AbsoluteClipTime' : AbsoluteClipTime,
- 'ClipTime.#Microsoft.Media.UtcClipTime' : UtcClipTime,
- 'JobInput.#Microsoft.Media.JobInputs' : JobInputs,
- 'JobInput.#Microsoft.Media.JobInputAsset' : JobInputAsset,
- 'JobInput.#Microsoft.Media.JobInputHttp' : JobInputHttp,
- 'JobOutput' : JobOutput,
- 'JobOutput.#Microsoft.Media.JobOutputAsset' : JobOutputAsset,
- 'JobInput.#Microsoft.Media.JobInputSequence' : JobInputSequence
+ 'ContentKeyPolicyConfiguration.#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration' : ContentKeyPolicyFairPlayConfiguration
};
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts
index 927b349e984f..9d9f2e376742 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,52 +45,24 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EdgePolicies,
EdgeUsageDataCollectionPolicy,
EdgeUsageDataEventHub,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
ListEdgePoliciesInput,
LiveEvent,
LiveEventEncoding,
@@ -115,29 +78,16 @@ export {
MediaService,
MediaServiceCollection,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
+ MediaServiceUpdate,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -151,17 +101,8 @@ export {
StreamingPolicyWidevineConfiguration,
SyncStorageKeysInput,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts
index 452f60a3526c..580ccfeafd49 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts
@@ -8,11 +8,12 @@
export {
discriminators,
- ApiError,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
LogSpecification,
MetricDimension,
MetricSpecification,
- ODataError,
Operation,
OperationCollection,
OperationDisplay,
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts
index 4c10acba3c01..fac083dfe28e 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts
@@ -93,16 +93,6 @@ export const filterName: msRest.OperationURLParameter = {
}
}
};
-export const jobName: msRest.OperationURLParameter = {
- parameterPath: "jobName",
- mapper: {
- required: true,
- serializedName: "jobName",
- type: {
- name: "String"
- }
- }
-};
export const liveEventName: msRest.OperationURLParameter = {
parameterPath: "liveEventName",
mapper: {
@@ -243,13 +233,3 @@ export const top: msRest.OperationQueryParameter = {
}
}
};
-export const transformName: msRest.OperationURLParameter = {
- parameterPath: "transformName",
- mapper: {
- required: true,
- serializedName: "transformName",
- type: {
- name: "String"
- }
- }
-};
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts
index 662a758fa623..f0bb451be043 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -110,30 +73,16 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionListResult,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts
index 347373bdd190..3e7b609403c8 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -110,30 +73,16 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkResourceListResult,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts
index 036f82669b0c..fd0478b1c028 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -110,29 +73,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -147,17 +96,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts
index 97a5f8af7940..7a84188cce6e 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
ListContentKeysResponse,
ListPathsResponse,
LiveEvent,
@@ -112,29 +75,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -149,17 +98,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts
index a07f09fd345e..1f250b389408 100644
--- a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts
@@ -8,26 +8,17 @@
export {
discriminators,
- AacAudio,
- AbsoluteClipTime,
+ AccessControl,
AccountEncryption,
AccountFilter,
AkamaiAccessControl,
AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
Asset,
AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
AzureEntityResource,
BaseResource,
- BuiltInStandardEncoderPreset,
CbcsDrmConfiguration,
CencDrmConfiguration,
- ClipTime,
- Codec,
CommonEncryptionCbcs,
CommonEncryptionCenc,
ContentKeyPolicy,
@@ -54,49 +45,21 @@ export {
ContentKeyPolicyUnknownRestriction,
ContentKeyPolicyWidevineConfiguration,
ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
CrossSiteAccessPolicies,
DefaultKey,
- Deinterlace,
EnabledProtocols,
EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
FilterTrackPropertyCondition,
FilterTrackSelection,
FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
IPAccessControl,
IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
+ KeyDelivery,
KeyVaultProperties,
- Layer,
LiveEvent,
LiveEventEncoding,
LiveEventEndpoint,
@@ -110,29 +73,15 @@ export {
LiveOutput,
MediaService,
MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
PresentationTimeRange,
- Preset,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkResource,
PrivateLinkServiceConnectionState,
ProxyResource,
- Rectangle,
Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
+ ResourceIdentity,
StorageAccount,
StreamingEndpoint,
StreamingEndpointAccessControl,
@@ -146,17 +95,8 @@ export {
StreamingPolicyPlayReadyConfiguration,
StreamingPolicyWidevineConfiguration,
SystemData,
- TrackDescriptor,
TrackedResource,
TrackPropertyCondition,
TrackSelection,
- Transform,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
+ UserAssignedManagedIdentity
} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts
deleted file mode 100644
index 8c3c5aed4f33..000000000000
--- a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * 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.
- */
-
-export {
- discriminators,
- AacAudio,
- AbsoluteClipTime,
- AccountEncryption,
- AccountFilter,
- AkamaiAccessControl,
- AkamaiSignatureHeaderAuthenticationKey,
- ApiError,
- Asset,
- AssetFilter,
- Audio,
- AudioAnalyzerPreset,
- AudioOverlay,
- AudioTrackDescriptor,
- AzureEntityResource,
- BaseResource,
- BuiltInStandardEncoderPreset,
- CbcsDrmConfiguration,
- CencDrmConfiguration,
- ClipTime,
- Codec,
- CommonEncryptionCbcs,
- CommonEncryptionCenc,
- ContentKeyPolicy,
- ContentKeyPolicyClearKeyConfiguration,
- ContentKeyPolicyConfiguration,
- ContentKeyPolicyFairPlayConfiguration,
- ContentKeyPolicyFairPlayOfflineRentalConfiguration,
- ContentKeyPolicyOpenRestriction,
- ContentKeyPolicyOption,
- ContentKeyPolicyPlayReadyConfiguration,
- ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader,
- ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier,
- ContentKeyPolicyPlayReadyContentKeyLocation,
- ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction,
- ContentKeyPolicyPlayReadyLicense,
- ContentKeyPolicyPlayReadyPlayRight,
- ContentKeyPolicyRestriction,
- ContentKeyPolicyRestrictionTokenKey,
- ContentKeyPolicyRsaTokenKey,
- ContentKeyPolicySymmetricTokenKey,
- ContentKeyPolicyTokenClaim,
- ContentKeyPolicyTokenRestriction,
- ContentKeyPolicyUnknownConfiguration,
- ContentKeyPolicyUnknownRestriction,
- ContentKeyPolicyWidevineConfiguration,
- ContentKeyPolicyX509CertificateTokenKey,
- CopyAudio,
- CopyVideo,
- CrossSiteAccessPolicies,
- DefaultKey,
- Deinterlace,
- EnabledProtocols,
- EnvelopeEncryption,
- FaceDetectorPreset,
- Filters,
- FilterTrackPropertyCondition,
- FilterTrackSelection,
- FirstQuality,
- Format,
- FromAllInputFile,
- FromEachInputFile,
- H264Layer,
- H264Video,
- H265Layer,
- H265Video,
- H265VideoLayer,
- Hls,
- Image,
- ImageFormat,
- InputDefinition,
- InputFile,
- IPAccessControl,
- IPRange,
- Job,
- JobError,
- JobErrorDetail,
- JobInput,
- JobInputAsset,
- JobInputClip,
- JobInputHttp,
- JobInputs,
- JobInputSequence,
- JobOutput,
- JobOutputAsset,
- JpgFormat,
- JpgImage,
- JpgLayer,
- KeyVaultProperties,
- Layer,
- LiveEvent,
- LiveEventEncoding,
- LiveEventEndpoint,
- LiveEventInput,
- LiveEventInputAccessControl,
- LiveEventInputTrackSelection,
- LiveEventOutputTranscriptionTrack,
- LiveEventPreview,
- LiveEventPreviewAccessControl,
- LiveEventTranscription,
- LiveOutput,
- MediaService,
- MediaServiceIdentity,
- Mp4Format,
- MultiBitrateFormat,
- NoEncryption,
- ODataError,
- OutputFile,
- Overlay,
- PngFormat,
- PngImage,
- PngLayer,
- PresentationTimeRange,
- Preset,
- PrivateEndpoint,
- PrivateEndpointConnection,
- PrivateLinkResource,
- PrivateLinkServiceConnectionState,
- ProxyResource,
- Rectangle,
- Resource,
- SelectAudioTrackByAttribute,
- SelectAudioTrackById,
- SelectVideoTrackByAttribute,
- SelectVideoTrackById,
- StandardEncoderPreset,
- StorageAccount,
- StreamingEndpoint,
- StreamingEndpointAccessControl,
- StreamingLocator,
- StreamingLocatorContentKey,
- StreamingPolicy,
- StreamingPolicyContentKey,
- StreamingPolicyContentKeys,
- StreamingPolicyFairPlayConfiguration,
- StreamingPolicyPlayReadyConfiguration,
- StreamingPolicyWidevineConfiguration,
- SystemData,
- TrackDescriptor,
- TrackedResource,
- TrackPropertyCondition,
- TrackSelection,
- Transform,
- TransformCollection,
- TransformOutput,
- TransportStreamFormat,
- UtcClipTime,
- Video,
- VideoAnalyzerPreset,
- VideoLayer,
- VideoOverlay,
- VideoTrackDescriptor
-} from "../models/mappers";
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts b/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts
index 1ca769099015..6c75fe01ee68 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/accountFilters.ts
@@ -265,7 +265,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AccountFilterCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -290,9 +290,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.AccountFilter
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -328,7 +327,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AccountFilter
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -353,7 +352,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -386,7 +385,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AccountFilter
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -410,7 +409,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AccountFilterCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/assetFilters.ts b/sdk/mediaservices/arm-mediaservices/src/operations/assetFilters.ts
index 50d272e306cc..19080c8a4e21 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/assetFilters.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/assetFilters.ts
@@ -286,7 +286,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetFilterCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -312,9 +312,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.AssetFilter
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -351,7 +350,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetFilter
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -377,7 +376,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -411,7 +410,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetFilter
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -435,7 +434,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetFilterCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/assets.ts b/sdk/mediaservices/arm-mediaservices/src/operations/assets.ts
index 5f17f10bf0f5..f371503db8af 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/assets.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/assets.ts
@@ -385,7 +385,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -410,9 +410,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.Asset
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -448,7 +447,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.Asset
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -473,7 +472,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -506,7 +505,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.Asset
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -539,7 +538,7 @@ const listContainerSasOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetContainerSas
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -565,7 +564,7 @@ const getEncryptionKeyOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StorageEncryptedAssetDecryptionData
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -591,7 +590,7 @@ const listStreamingLocatorsOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ListStreamingLocatorsResponse
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -618,7 +617,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.AssetCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/contentKeyPolicies.ts b/sdk/mediaservices/arm-mediaservices/src/operations/contentKeyPolicies.ts
index df39bdd2432c..83e8133d6014 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/contentKeyPolicies.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/contentKeyPolicies.ts
@@ -305,7 +305,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ContentKeyPolicyCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -330,9 +330,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.ContentKeyPolicy
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -368,7 +367,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ContentKeyPolicy
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -393,7 +392,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -426,7 +425,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ContentKeyPolicy
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -451,9 +450,8 @@ const getPolicyPropertiesWithSecretsOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.ContentKeyPolicyProperties
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -480,7 +478,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ContentKeyPolicyCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts
index 445034cf4aac..7a129c29f4a0 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts
@@ -7,17 +7,15 @@
* regenerated.
*/
-export * from "./accountFilters";
export * from "./operations";
export * from "./mediaservices";
export * from "./privateLinkResources";
export * from "./privateEndpointConnections";
export * from "./locations";
+export * from "./accountFilters";
export * from "./assets";
export * from "./assetFilters";
export * from "./contentKeyPolicies";
-export * from "./transforms";
-export * from "./jobs";
export * from "./streamingPolicies";
export * from "./streamingLocators";
export * from "./liveEvents";
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/jobs.ts b/sdk/mediaservices/arm-mediaservices/src/operations/jobs.ts
deleted file mode 100644
index ad8a37fbfc06..000000000000
--- a/sdk/mediaservices/arm-mediaservices/src/operations/jobs.ts
+++ /dev/null
@@ -1,511 +0,0 @@
-/*
- * 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 * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/jobsMappers";
-import * as Parameters from "../models/parameters";
-import { AzureMediaServicesContext } from "../azureMediaServicesContext";
-
-/** Class representing a Jobs. */
-export class Jobs {
- private readonly client: AzureMediaServicesContext;
-
- /**
- * Create a Jobs.
- * @param {AzureMediaServicesContext} client Reference to the service client.
- */
- constructor(client: AzureMediaServicesContext) {
- this.client = client;
- }
-
- /**
- * Lists all of the Jobs for the Transform.
- * @summary List Jobs
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- list(resourceGroupName: string, accountName: string, transformName: string, options?: Models.JobsListOptionalParams): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param callback The callback
- */
- list(resourceGroupName: string, accountName: string, transformName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param options The optional parameters
- * @param callback The callback
- */
- list(resourceGroupName: string, accountName: string, transformName: string, options: Models.JobsListOptionalParams, callback: msRest.ServiceCallback): void;
- list(resourceGroupName: string, accountName: string, transformName: string, options?: Models.JobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- options
- },
- listOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Gets a Job.
- * @summary Get Job
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param callback The callback
- */
- get(resourceGroupName: string, accountName: string, transformName: string, jobName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- jobName,
- options
- },
- getOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Creates a Job.
- * @summary Create Job
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param [options] The optional parameters
- * @returns Promise
- */
- create(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param callback The callback
- */
- create(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param options The optional parameters
- * @param callback The callback
- */
- create(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- create(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- jobName,
- parameters,
- options
- },
- createOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Deletes a Job.
- * @summary Delete Job
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, jobName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- jobName,
- options
- },
- deleteMethodOperationSpec,
- callback);
- }
-
- /**
- * Update is only supported for description and priority. Updating Priority will take effect when
- * the Job state is Queued or Scheduled and depending on the timing the priority update may be
- * ignored.
- * @summary Update Job
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param parameters The request parameters
- * @param options The optional parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, accountName: string, transformName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- jobName,
- parameters,
- options
- },
- updateOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Cancel a Job.
- * @summary Cancel Job
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- cancelJob(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param callback The callback
- */
- cancelJob(resourceGroupName: string, accountName: string, transformName: string, jobName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param jobName The Job name.
- * @param options The optional parameters
- * @param callback The callback
- */
- cancelJob(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- cancelJob(resourceGroupName: string, accountName: string, transformName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- jobName,
- options
- },
- cancelJobOperationSpec,
- callback);
- }
-
- /**
- * Lists all of the Jobs for the Transform.
- * @summary List Jobs
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: Models.JobsListNextOptionalParams, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
- }
-}
-
-// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter,
- Parameters.orderby
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.JobCollection
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName,
- Parameters.jobName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.Job
- },
- 404: {},
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const createOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName,
- Parameters.jobName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Job,
- required: true
- }
- },
- responses: {
- 201: {
- bodyMapper: Mappers.Job
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName,
- Parameters.jobName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName,
- Parameters.jobName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Job,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.Job
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const cancelJobOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}/cancelJob",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName,
- Parameters.jobName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {},
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter,
- Parameters.orderby
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.JobCollection
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts b/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts
index acac36900336..7f55d795cb9f 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts
@@ -405,7 +405,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveEventListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -430,9 +430,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.LiveEvent
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -469,7 +468,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveEvent
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -505,7 +504,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveEvent
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -531,7 +530,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
202: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -556,7 +555,7 @@ const beginAllocateOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -581,7 +580,7 @@ const beginStartOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -613,7 +612,7 @@ const beginStopOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -638,7 +637,7 @@ const beginResetOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -662,7 +661,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveEventListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts b/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts
index 1095155e5564..2c13da03c949 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts
@@ -237,7 +237,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveOutputListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -263,9 +263,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.LiveOutput
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -302,7 +301,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveOutput
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -329,7 +328,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
202: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -353,7 +352,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.LiveOutputListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts b/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts
index 3cf7b35e32bc..534cfed7cef2 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/locations.ts
@@ -86,7 +86,7 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.EntityNameAvailabilityCheckOutput
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts
index db9cec462b4a..df0324f3169d 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts
@@ -166,14 +166,14 @@ export class Mediaservices {
* @param [options] The optional parameters
* @returns Promise
*/
- update(resourceGroupName: string, accountName: string, parameters: Models.MediaService, options?: msRest.RequestOptionsBase): Promise;
+ update(resourceGroupName: string, accountName: string, parameters: Models.MediaServiceUpdate, options?: msRest.RequestOptionsBase): Promise;
/**
* @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 callback The callback
*/
- update(resourceGroupName: string, accountName: string, parameters: Models.MediaService, callback: msRest.ServiceCallback): void;
+ update(resourceGroupName: string, accountName: string, parameters: Models.MediaServiceUpdate, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
@@ -181,8 +181,8 @@ export class Mediaservices {
* @param options The optional parameters
* @param callback The callback
*/
- update(resourceGroupName: string, accountName: string, parameters: Models.MediaService, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, accountName: string, parameters: Models.MediaService, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ update(resourceGroupName: string, accountName: string, parameters: Models.MediaServiceUpdate, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ update(resourceGroupName: string, accountName: string, parameters: Models.MediaServiceUpdate, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -294,35 +294,6 @@ export class Mediaservices {
callback) as Promise;
}
- /**
- * Get the details of a Media Services account
- * @summary Get a Media Services account
- * @param accountName The Media Services account name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- getBySubscription(accountName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param accountName The Media Services account name.
- * @param callback The callback
- */
- getBySubscription(accountName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param accountName The Media Services account name.
- * @param options The optional parameters
- * @param callback The callback
- */
- getBySubscription(accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getBySubscription(accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- accountName,
- options
- },
- getBySubscriptionOperationSpec,
- callback) as Promise;
- }
-
/**
* List Media Services accounts in the resource group
* @summary List Media Services accounts
@@ -402,7 +373,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaServiceCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -427,7 +398,7 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaService
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -462,7 +433,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaService
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -486,7 +457,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -509,7 +480,7 @@ const updateOperationSpec: msRest.OperationSpec = {
requestBody: {
parameterPath: "parameters",
mapper: {
- ...Mappers.MediaService,
+ ...Mappers.MediaServiceUpdate,
required: true
}
},
@@ -518,7 +489,7 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaService
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -548,7 +519,7 @@ const syncStorageKeysOperationSpec: msRest.OperationSpec = {
responses: {
200: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -580,7 +551,7 @@ const listEdgePoliciesOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.EdgePolicies
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -603,31 +574,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaServiceCollection
},
default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const getBySubscriptionOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.accountName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.MediaService
- },
- default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -651,7 +598,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaServiceCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -675,7 +622,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.MediaServiceCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/operations.ts b/sdk/mediaservices/arm-mediaservices/src/operations/operations.ts
index a7969c95e738..bd037269f947 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/operations.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/operations.ts
@@ -49,35 +49,6 @@ export class Operations {
listOperationSpec,
callback) as Promise;
}
-
- /**
- * Lists all the Media Services operations.
- * @summary List Operations
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
- }
}
// Operation Specifications
@@ -96,31 +67,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.OperationCollection
},
default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.OperationCollection
- },
- default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts
index beff05393c8c..e4865d0a54ae 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts
@@ -195,7 +195,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.PrivateEndpointConnectionListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -221,7 +221,7 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.PrivateEndpointConnection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -254,7 +254,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.PrivateEndpointConnection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -277,8 +277,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
],
responses: {
200: {},
+ 204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts b/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts
index 1e61dc2033d8..ee0d880f6230 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts
@@ -117,7 +117,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.PrivateLinkResourceListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -143,7 +143,7 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.PrivateLinkResource
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts b/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts
index 64f3f9595a4f..436725e8ed5c 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts
@@ -366,7 +366,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingEndpointListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -391,9 +391,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.StreamingEndpoint
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -430,7 +429,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingEndpoint
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -466,7 +465,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingEndpoint
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -492,7 +491,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
202: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -517,7 +516,7 @@ const beginStartOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -542,7 +541,7 @@ const beginStopOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -574,7 +573,7 @@ const beginScaleOperationSpec: msRest.OperationSpec = {
200: {},
202: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -598,7 +597,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingEndpointListResult
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/streamingLocators.ts b/sdk/mediaservices/arm-mediaservices/src/operations/streamingLocators.ts
index f61eb89a23e6..0685671dc73c 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/streamingLocators.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/streamingLocators.ts
@@ -301,7 +301,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingLocatorCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -326,9 +326,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.StreamingLocator
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -361,7 +360,7 @@ const createOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingLocator
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -386,7 +385,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -412,7 +411,7 @@ const listContentKeysOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ListContentKeysResponse
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -438,7 +437,7 @@ const listPathsOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ListPathsResponse
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -465,7 +464,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingLocatorCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/streamingPolicies.ts b/sdk/mediaservices/arm-mediaservices/src/operations/streamingPolicies.ts
index 064a4e0a6a66..0a740433401b 100644
--- a/sdk/mediaservices/arm-mediaservices/src/operations/streamingPolicies.ts
+++ b/sdk/mediaservices/arm-mediaservices/src/operations/streamingPolicies.ts
@@ -227,7 +227,7 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingPolicyCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -252,9 +252,8 @@ const getOperationSpec: msRest.OperationSpec = {
200: {
bodyMapper: Mappers.StreamingPolicy
},
- 404: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -287,7 +286,7 @@ const createOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingPolicy
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -312,7 +311,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
200: {},
204: {},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
@@ -339,7 +338,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.StreamingPolicyCollection
},
default: {
- bodyMapper: Mappers.ApiError
+ bodyMapper: Mappers.ErrorResponse
}
},
serializer
diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/transforms.ts b/sdk/mediaservices/arm-mediaservices/src/operations/transforms.ts
deleted file mode 100644
index 4bb59b8402b1..000000000000
--- a/sdk/mediaservices/arm-mediaservices/src/operations/transforms.ts
+++ /dev/null
@@ -1,421 +0,0 @@
-/*
- * 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 * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/transformsMappers";
-import * as Parameters from "../models/parameters";
-import { AzureMediaServicesContext } from "../azureMediaServicesContext";
-
-/** Class representing a Transforms. */
-export class Transforms {
- private readonly client: AzureMediaServicesContext;
-
- /**
- * Create a Transforms.
- * @param {AzureMediaServicesContext} client Reference to the service client.
- */
- constructor(client: AzureMediaServicesContext) {
- this.client = client;
- }
-
- /**
- * Lists the Transforms in the account.
- * @summary List Transforms
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- list(resourceGroupName: string, accountName: string, options?: Models.TransformsListOptionalParams): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param callback The callback
- */
- list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param options The optional parameters
- * @param callback The callback
- */
- list(resourceGroupName: string, accountName: string, options: Models.TransformsListOptionalParams, callback: msRest.ServiceCallback): void;
- list(resourceGroupName: string, accountName: string, options?: Models.TransformsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- options
- },
- listOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Gets a Transform.
- * @summary Get Transform
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, accountName: string, transformName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param callback The callback
- */
- get(resourceGroupName: string, accountName: string, transformName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, accountName: string, transformName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, accountName: string, transformName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- options
- },
- getOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Creates or updates a new Transform.
- * @summary Create or Update Transform
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param options The optional parameters
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- parameters,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Deletes a Transform.
- * @summary Delete Transform
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, accountName: string, transformName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- options
- },
- deleteMethodOperationSpec,
- callback);
- }
-
- /**
- * Updates a Transform.
- * @summary Update Transform
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group within the Azure subscription.
- * @param accountName The Media Services account name.
- * @param transformName The Transform name.
- * @param parameters The request parameters
- * @param options The optional parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, accountName: string, transformName: string, parameters: Models.Transform, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- transformName,
- parameters,
- options
- },
- updateOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Lists the Transforms in the account.
- * @summary List Transforms
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: Models.TransformsListNextOptionalParams): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: Models.TransformsListNextOptionalParams, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: Models.TransformsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
- }
-}
-
-// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter,
- Parameters.orderby
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.TransformCollection
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.Transform
- },
- 404: {},
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Transform,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.Transform
- },
- 201: {
- bodyMapper: Mappers.Transform
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName,
- Parameters.transformName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Transform,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.Transform
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.filter,
- Parameters.orderby
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.TransformCollection
- },
- default: {
- bodyMapper: Mappers.ApiError
- }
- },
- serializer
-};