diff --git a/sdk/mediaservices/arm-mediaservices/package.json b/sdk/mediaservices/arm-mediaservices/package.json index 81f83a885a2c..13132138b6de 100644 --- a/sdk/mediaservices/arm-mediaservices/package.json +++ b/sdk/mediaservices/arm-mediaservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-mediaservices", "author": "Microsoft Corporation", "description": "AzureMediaServices Library with typescript type definitions for node.js and browser.", - "version": "7.2.0", + "version": "8.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts index 1a00cc2674c8..1d68cf288d68 100644 --- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServices.ts @@ -20,6 +20,8 @@ class AzureMediaServices extends AzureMediaServicesContext { accountFilters: operations.AccountFilters; operations: operations.Operations; mediaservices: operations.Mediaservices; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; locations: operations.Locations; assets: operations.Assets; assetFilters: operations.AssetFilters; @@ -43,6 +45,8 @@ class AzureMediaServices extends AzureMediaServicesContext { 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.assets = new operations.Assets(this); this.assetFilters = new operations.AssetFilters(this); diff --git a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts index 69a3d868873c..16012fd38db6 100644 --- a/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts +++ b/sdk/mediaservices/arm-mediaservices/src/azureMediaServicesContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-mediaservices"; -const packageVersion = "7.2.0"; +const packageVersion = "8.0.0"; export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -37,14 +37,14 @@ export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2018-07-01'; + this.apiVersion = '2020-05-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -52,10 +52,10 @@ export class AzureMediaServicesContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts index f806af744400..ed8a53222a0c 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/accountFiltersMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AccountFilterCollection, AkamaiAccessControl, @@ -20,6 +21,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -85,16 +87,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -106,6 +113,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -121,13 +132,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts index 574d26c75e74..b1ba2165e630 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/assetFiltersMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -20,6 +21,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -85,16 +87,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -106,6 +113,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -121,13 +132,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts index e7ec775d858f..a0ff9ad8d72d 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/assetsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -23,6 +24,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -88,6 +90,7 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, ListContainerSasInput, ListStreamingLocatorsResponse, @@ -96,10 +99,14 @@ export { LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -111,6 +118,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -127,13 +138,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts index 22df95767595..bf7d81abab2c 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/contentKeyPoliciesMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -86,16 +88,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -107,6 +114,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -122,13 +133,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/index.ts b/sdk/mediaservices/arm-mediaservices/src/models/index.ts index 27f2e0f9a292..945494c70287 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/index.ts @@ -82,28 +82,31 @@ export interface FilterTrackSelection { } /** - * The core properties of ARM resources. + * An interface representing Resource. */ export interface Resource extends BaseResource { /** - * Fully qualified resource ID for the resource. + * Fully qualified resource Id for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * The name of the resource. + * 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. + * The type of the resource. Ex- 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 ARM proxy resource. + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags */ export interface ProxyResource extends Resource { } @@ -153,13 +156,13 @@ export interface ODataError { */ export interface ApiError { /** - * ApiError. The error properties. + * The error properties. */ error?: ODataError; } /** - * The resource model definition for a ARM tracked resource. + * The resource model definition for a ARM tracked top level resource */ export interface TrackedResource extends Resource { /** @@ -167,9 +170,20 @@ export interface TrackedResource extends Resource { */ tags?: { [propertyName: string]: string }; /** - * The Azure Region of the resource. + * The geo-location where the resource lives */ - location?: string; + location: string; +} + +/** + * The resource model definition for a Azure Resource Manager resource with an etag. + */ +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; } /** @@ -228,7 +242,7 @@ export interface MetricDimension { /** * A metric emitted by service. */ -export interface Metric { +export interface MetricSpecification { /** * The metric name. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -254,6 +268,10 @@ export interface Metric { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly aggregationType?: MetricAggregationType; + /** + * Supported aggregation types. + */ + supportedAggregationTypes?: string[]; /** * The metric dimensions. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -261,21 +279,47 @@ export interface Metric { readonly dimensions?: MetricDimension[]; } +/** + * A diagnostic log emitted by service. + */ +export interface LogSpecification { + /** + * The diagnostic log category name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The diagnostic log category display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * The time range for requests in each blob. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly blobDuration?: string; +} + /** * The service metric specifications. */ export interface ServiceSpecification { + /** + * List of log specifications. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly logSpecifications?: LogSpecification[]; /** * List of metric specifications. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricSpecifications?: Metric[]; + readonly metricSpecifications?: MetricSpecification[]; } /** - * Metric properties. + * The service specification property. */ -export interface MetricProperties { +export interface Properties { /** * The service specifications. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -302,7 +346,7 @@ export interface Operation { /** * Operation properties format. */ - properties?: MetricProperties; + properties?: Properties; } /** @@ -357,6 +401,58 @@ export interface SyncStorageKeysInput { id?: string; } +/** + * An interface representing KeyVaultProperties. + */ +export interface KeyVaultProperties { + /** + * The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for + * example https://vault/keys/mykey/version1) or reference a key without a version (for example + * https://vault/keys/mykey). + */ + keyIdentifier?: string; + /** + * The current key used to encrypt the Media Services account, including the key version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentKeyIdentifier?: string; +} + +/** + * An interface representing AccountEncryption. + */ +export interface AccountEncryption { + /** + * The type of key used to encrypt the Account Key. Possible values include: 'SystemKey', + * 'CustomerKey' + */ + type: AccountEncryptionKeyType; + /** + * The properties of the key used to encrypt the account. + */ + keyVaultProperties?: KeyVaultProperties; +} + +/** + * An interface representing MediaServiceIdentity. + */ +export interface MediaServiceIdentity { + /** + * The identity type. Possible values include: 'SystemAssigned', 'None' + */ + type: ManagedIdentityType; + /** + * 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; +} + /** * A Media Services account. */ @@ -370,6 +466,18 @@ export interface MediaService extends TrackedResource { * The storage accounts for this resource. */ storageAccounts?: StorageAccount[]; + /** + * Possible values include: 'System', 'ManagedIdentity' + */ + storageAuthentication?: StorageAuthentication; + /** + * The account encryption properties. + */ + encryption?: AccountEncryption; + /** + * The Managed Identity for the Media Services account. + */ + identity?: MediaServiceIdentity; } /** @@ -431,32 +539,108 @@ export interface EdgePolicies { } /** - * A Media Services account. + * The input to the check name availability request. */ -export interface SubscriptionMediaService extends TrackedResource { +export interface CheckNameAvailabilityInput { /** - * The Media Services account ID. + * The account name. + */ + name?: string; + /** + * The account type. For a Media Services account, this should be 'MediaServices'. + */ + type?: string; +} + +/** + * A collection of information about the state of the connection between service consumer and + * provider. + */ +export interface PrivateLinkServiceConnectionState { + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + * service. Possible values include: 'Pending', 'Approved', 'Rejected' + */ + status?: PrivateEndpointServiceConnectionStatus; + /** + * The reason for approval/rejection of the connection. + */ + description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + */ + actionsRequired?: string; +} + +/** + * The Private Endpoint resource. + */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly mediaServiceId?: string; + readonly id?: string; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends Resource { /** - * The storage accounts for this resource. + * The resource of private end point. */ - storageAccounts?: StorageAccount[]; + privateEndpoint?: PrivateEndpoint; + /** + * A collection of information about the state of the connection between service consumer and + * provider. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. Possible values include: + * 'Succeeded', 'Creating', 'Deleting', 'Failed' + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; } /** - * The input to the check name availability request. + * List of private endpoint connection associated with the specified storage account */ -export interface CheckNameAvailabilityInput { +export interface PrivateEndpointConnectionListResult { /** - * The account name. + * Array of private endpoint connections */ - name?: string; + value?: PrivateEndpointConnection[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends Resource { /** - * The account type. For a Media Services account, this should be 'MediaServices'. + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - type?: string; + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; +} + +/** + * A list of private link resources + */ +export interface PrivateLinkResourceListResult { + /** + * Array of private link resources + */ + value?: PrivateLinkResource[]; } /** @@ -1166,7 +1350,7 @@ export interface Preset { /** * Contains the possible cases for Codec. */ -export type CodecUnion = Codec | AudioUnion | CopyVideo | VideoUnion | CopyAudio; +export type CodecUnion = Codec | AudioUnion | VideoUnion | CopyVideo | CopyAudio; /** * Describes the basic properties of all codecs. @@ -1244,6 +1428,75 @@ export interface AacAudio { profile?: AacAudioProfile; } +/** + * Contains the possible cases for Layer. + */ +export type LayerUnion = Layer | VideoLayerUnion | JpgLayer | PngLayer; + +/** + * The encoder can be configured to produce video and/or images (thumbnails) at different + * resolutions, by specifying a layer for each desired resolution. A layer represents the + * properties for the video or image at a resolution. + */ +export interface Layer { + /** + * Polymorphic Discriminator + */ + 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; + /** + * 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; +} + +/** + * Contains the possible cases for Video. + */ +export type VideoUnion = Video | ImageUnion | H264Video; + +/** + * Describes the basic properties for encoding the input video. + */ +export interface Video { + /** + * Polymorphic Discriminator + */ + odatatype: "#Microsoft.Media.Video"; + /** + * 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; +} + /** * Describes all the settings to be used when analyzing a video in order to detect all the faces * present. @@ -1290,15 +1543,21 @@ export interface AudioAnalyzerPreset { /** * 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. 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 + * 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; + /** + * Determines the set of audio analysis operations to be performed. If unspecified, the Standard + * AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic' + */ + mode?: AudioAnalysisMode; /** * Dictionary containing key value pairs for parameters not exposed in the preset itself */ @@ -1327,16 +1586,17 @@ export interface Overlay { 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 in to the + * 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 position in the input video at which the overlay ends. The value should be in ISO 8601 - * duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If - * not specified the overlay will be applied until the end of the input video if inputLoop is - * true. Else, if inputLoop is false, then overlay will last as long as the duration of the - * overlay media. + * 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; /** @@ -1375,16 +1635,17 @@ export interface AudioOverlay { 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 in to the + * 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 position in the input video at which the overlay ends. The value should be in ISO 8601 - * duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If - * not specified the overlay will be applied until the end of the input video if inputLoop is - * true. Else, if inputLoop is false, then overlay will last as long as the duration of the - * overlay media. + * 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; /** @@ -1420,36 +1681,6 @@ export interface CopyVideo { label?: string; } -/** - * Contains the possible cases for Video. - */ -export type VideoUnion = Video | ImageUnion | H264Video; - -/** - * Describes the basic properties for encoding the input video. - */ -export interface Video { - /** - * Polymorphic Discriminator - */ - odatatype: "#Microsoft.Media.Video"; - /** - * An optional label for the codec. The label can be used to control muxing behavior. - */ - label?: string; - /** - * The distance between two key frames, thereby defining a group of pictures (GOP). The value - * should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The - * default is 2 seconds (PT2S). - */ - 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; -} - /** * Contains the possible cases for Image. */ @@ -1468,9 +1699,10 @@ export interface Image { */ label?: string; /** - * The distance between two key frames, thereby defining a group of pictures (GOP). The value - * should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The - * default is 2 seconds (PT2S). + * 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; /** @@ -1478,23 +1710,41 @@ export interface Image { * 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 - * absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th - * frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the - * encoder to select the best thumbnail from the first few seconds of the video. + * 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; /** - * The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every - * 30 frames), or a relative value (For example, 1%). + * 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. */ step?: string; /** - * The position in the input video at which to stop generating thumbnails. The value can be in - * absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame - * count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%). + * 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. */ range?: string; } @@ -1514,11 +1764,15 @@ export interface Format { odatatype: "Format"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; } @@ -1538,11 +1792,15 @@ export interface ImageFormat { odatatype: "#Microsoft.Media.ImageFormat"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; } @@ -1557,11 +1815,15 @@ export interface JpgFormat { odatatype: "#Microsoft.Media.JpgFormat"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; } @@ -1576,11 +1838,15 @@ export interface PngFormat { odatatype: "#Microsoft.Media.PngFormat"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; } @@ -1667,40 +1933,6 @@ export interface Filters { overlays?: OverlayUnion[]; } -/** - * Contains the possible cases for Layer. - */ -export type LayerUnion = Layer | VideoLayerUnion | JpgLayer | PngLayer; - -/** - * The encoder can be configured to produce video and/or images (thumbnails) at different - * resolutions, by specifying a layer for each desired resolution. A layer represents the - * properties for the video or image at a resolution. - */ -export interface Layer { - /** - * Polymorphic Discriminator - */ - 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; - /** - * 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; -} - /** * Contains the possible cases for VideoLayer. */ @@ -1867,9 +2099,10 @@ export interface H264Video { */ label?: string; /** - * The distance between two key frames, thereby defining a group of pictures (GOP). The value - * should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The - * default is 2 seconds (PT2S). + * 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; /** @@ -1877,6 +2110,10 @@ export interface H264Video { * 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; /** * 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 @@ -1938,9 +2175,10 @@ export interface JpgImage { */ label?: string; /** - * The distance between two key frames, thereby defining a group of pictures (GOP). The value - * should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The - * default is 2 seconds (PT2S). + * 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; /** @@ -1948,29 +2186,55 @@ export interface JpgImage { * 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 - * absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th - * frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the - * encoder to select the best thumbnail from the first few seconds of the video. + * 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; /** - * The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every - * 30 frames), or a relative value (For example, 1%). + * 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. */ step?: string; /** - * The position in the input video at which to stop generating thumbnails. The value can be in - * absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame - * count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%). + * 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. */ range?: string; /** * A collection of output JPEG image layers to be produced by the encoder. */ layers?: JpgLayer[]; + /** + * 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. + */ + spriteColumn?: number; } /** @@ -2004,11 +2268,15 @@ export interface MultiBitrateFormat { odatatype: "#Microsoft.Media.MultiBitrateFormat"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; /** @@ -2028,11 +2296,15 @@ export interface Mp4Format { odatatype: "#Microsoft.Media.Mp4Format"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; /** @@ -2082,9 +2354,10 @@ export interface PngImage { */ label?: string; /** - * The distance between two key frames, thereby defining a group of pictures (GOP). The value - * should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The - * default is 2 seconds (PT2S). + * 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; /** @@ -2092,23 +2365,41 @@ export interface PngImage { * 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 - * absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th - * frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the - * encoder to select the best thumbnail from the first few seconds of the video. + * 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; /** - * The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every - * 30 frames), or a relative value (For example, 1%). + * 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. */ step?: string; /** - * The position in the input video at which to stop generating thumbnails. The value can be in - * absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame - * count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%). + * 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. */ range?: string; /** @@ -2129,7 +2420,8 @@ export interface BuiltInStandardEncoderPreset { * The built-in preset to be used for encoding videos. Possible values include: * 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', * 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', - * 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + * 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', + * 'H264MultipleBitrateSD' */ presetName: EncoderNamedPreset; } @@ -2168,15 +2460,21 @@ export interface 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. 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 + * 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; + /** + * Determines the set of audio analysis operations to be performed. If unspecified, the Standard + * AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic' + */ + mode?: AudioAnalysisMode; /** * Dictionary containing key value pairs for parameters not exposed in the preset itself */ @@ -2205,11 +2503,15 @@ export interface TransportStreamFormat { odatatype: "#Microsoft.Media.TransportStreamFormat"; /** * The pattern of the file names for the generated output files. The following macros are - * supported in the file name: {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from the filename. + * 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. Any unsubstituted macros will be collapsed and + * removed from the filename. */ filenamePattern: string; /** @@ -2236,16 +2538,17 @@ export interface VideoOverlay { 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 in to the + * 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 position in the input video at which the overlay ends. The value should be in ISO 8601 - * duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If - * not specified the overlay will be applied until the end of the input video if inputLoop is - * true. Else, if inputLoop is false, then overlay will last as long as the duration of the - * overlay media. + * 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; /** @@ -2350,7 +2653,7 @@ export interface JobInput { /** * Contains the possible cases for ClipTime. */ -export type ClipTimeUnion = ClipTime | AbsoluteClipTime; +export type ClipTimeUnion = ClipTime | AbsoluteClipTime | UtcClipTime; /** * Base class for specifying a clip time. Use sub classes of this class to specify the time @@ -2417,6 +2720,21 @@ export interface AbsoluteClipTime { 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. */ @@ -2674,7 +2992,7 @@ export interface JobOutputAsset { */ export interface Job extends ProxyResource { /** - * The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. + * 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; @@ -2693,7 +3011,8 @@ export interface Job extends ProxyResource { */ input: JobInputUnion; /** - * The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + * 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; @@ -3148,11 +3467,12 @@ export interface StreamingLocator extends ProxyResource { } /** - * The HLS configuration. + * HTTP Live Streaming (HLS) packing setting for the live output. */ export interface Hls { /** - * The amount of fragments per HTTP Live Streaming (HLS) segment. + * 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; } @@ -3162,47 +3482,49 @@ export interface Hls { */ export interface LiveOutput extends ProxyResource { /** - * The description of the Live Output. + * The description of the live output. */ description?: string; /** - * The asset name. + * The asset that the live output will write to. */ assetName: string; /** - * ISO 8601 timespan duration of the archive window length. This is duration that customer want - * to retain the recorded content. + * 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. + * The manifest file name. If not provided, the service will generate one automatically. */ manifestName?: string; /** - * The HLS configuration. + * HTTP Live Streaming (HLS) packing setting for the live output. */ hls?: Hls; /** - * The output snapshot time. + * The initial timestamp that the live output will start at, any content before this value will + * not be archived. */ outputSnapTime?: number; /** - * The exact time the Live Output was created. + * 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 exact time the Live Output was last modified. + * 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. + * 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', + * 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.** */ @@ -3210,7 +3532,7 @@ export interface LiveOutput extends ProxyResource { } /** - * The Live Event endpoint. + * The live event endpoint. */ export interface LiveEventEndpoint { /** @@ -3252,7 +3574,7 @@ export interface IPAccessControl { } /** - * The IP access control for Live Event Input. + * The IP access control for live event input. */ export interface LiveEventInputAccessControl { /** @@ -3262,35 +3584,37 @@ export interface LiveEventInputAccessControl { } /** - * The Live Event input. + * The live event input. */ export interface LiveEventInput { /** - * The streaming protocol for the Live Event. This is specified at creation time and cannot be + * The input protocol for the live event. This is specified at creation time and cannot be * updated. Possible values include: 'FragmentedMP4', 'RTMP' */ streamingProtocol: LiveEventInputProtocol; /** - * The access control for LiveEvent Input. + * Access control for live event input. */ accessControl?: LiveEventInputAccessControl; /** - * ISO 8601 timespan duration of the key frame interval duration. + * 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 unique identifier for a stream. This can be specified at creation time but cannot be - * updated. If omitted, the service will generate a unique value. + * 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. + * The input endpoints for the live event. */ endpoints?: LiveEventEndpoint[]; } /** - * The IP access control for Live Event preview. + * The IP access control for the live event preview endpoint. */ export interface LiveEventPreviewAccessControl { /** @@ -3300,32 +3624,32 @@ export interface LiveEventPreviewAccessControl { } /** - * The Live Event preview. + * Live event preview settings. */ export interface LiveEventPreview { /** - * The endpoints for preview. + * The endpoints for preview. Do not share the preview URL with the live event audience. */ endpoints?: LiveEventEndpoint[]; /** - * The access control for LiveEvent preview. + * 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. + * 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 LiveEvent preview. This value is specified at + * 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 StreamingLocator created for the preview. - * This value is specified at creation time and cannot be updated. The identifier can be used in + * 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. */ @@ -3333,18 +3657,100 @@ export interface LiveEventPreview { } /** - * The Live Event encoding. + * Specifies the live event type and optional encoding settings for encoding live events. */ export interface LiveEventEncoding { /** - * The encoding type for Live Event. This value is specified at creation time and cannot be - * updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p' + * 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 encoding preset name. This value is specified at creation time and cannot be updated. + * 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; } /** @@ -3366,63 +3772,81 @@ export interface CrossSiteAccessPolicies { */ export interface LiveEventActionInput { /** - * The flag indicates if remove LiveOutputs on Stop. + * 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. + * The live event. */ export interface LiveEvent extends TrackedResource { /** - * The Live Event description. + * A description for the live event. */ description?: string; /** - * The Live Event input. + * Live event input settings. It defines how the live event receives input from a contribution + * encoder. */ input: LiveEventInput; /** - * The Live Event preview. + * Live event preview settings. Preview allows live event producers to preview the live streaming + * content without creating any live output. */ preview?: LiveEventPreview; /** - * The Live Event encoding. + * 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; /** - * The provisioning state of the Live Event. + * 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. Possible values include: 'Stopped', 'Starting', + * 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; /** - * The Live Event access policies. + * Live event cross site access policies. */ crossSiteAccessPolicies?: CrossSiteAccessPolicies; /** - * Specifies whether to use a vanity url with the Live Event. This value is specified at - * creation time and cannot be updated. + * 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. */ - vanityUrl?: boolean; + hostnamePrefix?: string; /** - * The options to use for the LiveEvent. This value is specified at creation time and cannot be - * updated. + * 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 exact time the Live Event was created. + * 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 exact time the Live Event was last modified. + * 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; @@ -3457,7 +3881,7 @@ export interface AkamaiAccessControl { } /** - * StreamingEndpoint access control definition. + * Streaming endpoint access control definition. */ export interface StreamingEndpointAccessControl { /** @@ -3465,7 +3889,7 @@ export interface StreamingEndpointAccessControl { */ akamai?: AkamaiAccessControl; /** - * The IP access control of the StreamingEndpoint. + * The IP access control of the streaming endpoint. */ ip?: IPAccessControl; } @@ -3475,30 +3899,29 @@ export interface StreamingEndpointAccessControl { */ export interface StreamingEntityScaleUnit { /** - * The scale unit number of the StreamingEndpoint. + * The scale unit number of the streaming endpoint. */ scaleUnit?: number; } /** - * The StreamingEndpoint. + * The streaming endpoint. */ export interface StreamingEndpoint extends TrackedResource { /** - * The StreamingEndpoint description. + * The streaming endpoint description. */ description?: string; /** - * The number of scale units. Use the Scale operation to adjust this value. + * The number of scale units. Use the Scale operation to adjust this value. */ scaleUnits: number; /** - * The name of the AvailabilitySet used with this StreamingEndpoint for high availability - * streaming. This value can only be set at creation time. + * This feature is deprecated, do not set a value for this property. */ availabilitySetName?: string; /** - * The access control definition of the StreamingEndpoint. + * The access control definition of the streaming endpoint. */ accessControl?: StreamingEndpointAccessControl; /** @@ -3506,11 +3929,11 @@ export interface StreamingEndpoint extends TrackedResource { */ maxCacheAge?: number; /** - * The custom host names of the StreamingEndpoint + * The custom host names of the streaming endpoint */ customHostNames?: string[]; /** - * The StreamingEndpoint host name. + * The streaming endpoint host name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hostName?: string; @@ -3527,18 +3950,18 @@ export interface StreamingEndpoint extends TrackedResource { */ cdnProfile?: string; /** - * The provisioning state of the StreamingEndpoint. + * 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 StreamingEndpoint. Possible values include: 'Stopped', 'Starting', + * 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 StreamingEndpoint access policies. + * The streaming endpoint access policies. */ crossSiteAccessPolicies?: CrossSiteAccessPolicies; /** @@ -3547,12 +3970,12 @@ export interface StreamingEndpoint extends TrackedResource { */ readonly freeTrialEndTime?: Date; /** - * The exact time the StreamingEndpoint was created. + * 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 StreamingEndpoint was last modified. + * 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; @@ -3752,19 +4175,6 @@ export interface MediaServiceCollection extends Array { odatanextLink?: string; } -/** - * @interface - * A collection of SubscriptionMediaService items. - * @extends Array - */ -export interface SubscriptionMediaServiceCollection 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. @@ -3868,8 +4278,8 @@ export interface LiveEventListResult extends Array { */ odatacount?: number; /** - * Th link to the next set of results. Not empty if value contains incomplete list of Live - * Outputs. + * The link to the next set of results. Not empty if value contains incomplete list of live + * outputs. */ odatanextLink?: string; } @@ -3886,15 +4296,15 @@ export interface LiveOutputListResult extends Array { */ odatacount?: number; /** - * Th link to the next set of results. Not empty if value contains incomplete list of Live - * Outputs. + * The link to the next set of results. Not empty if value contains incomplete list of live + * outputs. */ odatanextLink?: string; } /** * @interface - * The StreamingEndpoint list result. + * The streaming endpoint list result. * @summary StreamingEndpointListResult * @extends Array */ @@ -3904,8 +4314,8 @@ export interface StreamingEndpointListResult extends Array { */ odatacount?: number; /** - * Th link to the next set of results. Not empty if value contains incomplete list of - * StreamingEndpoints. + * The link to the next set of results. Not empty if value contains incomplete list of streaming + * endpoints. */ odatanextLink?: string; } @@ -3950,6 +4360,46 @@ export type MetricAggregationType = 'Average' | 'Count' | 'Total'; */ 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' @@ -4015,6 +4465,22 @@ export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefin */ export type AacAudioProfile = 'AacLc' | 'HeAacV1' | 'HeAacV2'; +/** + * Defines values for StretchMode. + * Possible values include: 'None', 'AutoSize', 'AutoFit' + * @readonly + * @enum {string} + */ +export type StretchMode = 'None' | 'AutoSize' | 'AutoFit'; + +/** + * Defines values for VideoSyncMode. + * Possible values include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' + * @readonly + * @enum {string} + */ +export type VideoSyncMode = 'Auto' | 'Passthrough' | 'Cfr' | 'Vfr'; + /** * Defines values for AnalysisResolution. * Possible values include: 'SourceResolution', 'StandardDefinition' @@ -4024,12 +4490,12 @@ export type AacAudioProfile = 'AacLc' | 'HeAacV1' | 'HeAacV2'; export type AnalysisResolution = 'SourceResolution' | 'StandardDefinition'; /** - * Defines values for StretchMode. - * Possible values include: 'None', 'AutoSize', 'AutoFit' + * Defines values for AudioAnalysisMode. + * Possible values include: 'Standard', 'Basic' * @readonly * @enum {string} */ -export type StretchMode = 'None' | 'AutoSize' | 'AutoFit'; +export type AudioAnalysisMode = 'Standard' | 'Basic'; /** * Defines values for DeinterlaceParity. @@ -4083,12 +4549,12 @@ export type H264Complexity = 'Speed' | 'Balanced' | 'Quality'; * Defines values for EncoderNamedPreset. * Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', * 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', - * 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'H264MultipleBitrate1080p', - * 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + * 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'CopyAllBitrateNonInterleaved', + * 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' * @readonly * @enum {string} */ -export type EncoderNamedPreset = 'H264SingleBitrateSD' | 'H264SingleBitrate720p' | 'H264SingleBitrate1080p' | 'AdaptiveStreaming' | 'AACGoodQualityAudio' | 'ContentAwareEncodingExperimental' | 'ContentAwareEncoding' | 'H264MultipleBitrate1080p' | 'H264MultipleBitrate720p' | 'H264MultipleBitrateSD'; +export type EncoderNamedPreset = 'H264SingleBitrateSD' | 'H264SingleBitrate720p' | 'H264SingleBitrate1080p' | 'AdaptiveStreaming' | 'AACGoodQualityAudio' | 'ContentAwareEncodingExperimental' | 'ContentAwareEncoding' | 'CopyAllBitrateNonInterleaved' | 'H264MultipleBitrate1080p' | 'H264MultipleBitrate720p' | 'H264MultipleBitrateSD'; /** * Defines values for InsightsType. @@ -4208,19 +4674,20 @@ export type LiveEventInputProtocol = 'FragmentedMP4' | 'RTMP'; /** * Defines values for LiveEventEncodingType. - * Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p' + * Possible values include: 'None', 'Standard', 'Premium1080p' * @readonly * @enum {string} */ -export type LiveEventEncodingType = 'None' | 'Basic' | 'Standard' | 'Premium1080p'; +export type LiveEventEncodingType = 'None' | 'Standard' | 'Premium1080p'; /** * Defines values for LiveEventResourceState. - * Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' + * Possible values include: 'Stopped', 'Allocating', 'StandBy', 'Starting', 'Running', 'Stopping', + * 'Deleting' * @readonly * @enum {string} */ -export type LiveEventResourceState = 'Stopped' | 'Starting' | 'Running' | 'Stopping' | 'Deleting'; +export type LiveEventResourceState = 'Stopped' | 'Allocating' | 'StandBy' | 'Starting' | 'Running' | 'Stopping' | 'Deleting'; /** * Defines values for StreamOptionsFlag. @@ -4481,7 +4948,7 @@ export type MediaservicesListEdgePoliciesResponse = EdgePolicies & { /** * Contains response data for the listBySubscription operation. */ -export type MediaservicesListBySubscriptionResponse = SubscriptionMediaServiceCollection & { +export type MediaservicesListBySubscriptionResponse = MediaServiceCollection & { /** * The underlying HTTP response. */ @@ -4494,14 +4961,14 @@ export type MediaservicesListBySubscriptionResponse = SubscriptionMediaServiceCo /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionMediaServiceCollection; + parsedBody: MediaServiceCollection; }; }; /** * Contains response data for the getBySubscription operation. */ -export type MediaservicesGetBySubscriptionResponse = SubscriptionMediaService & { +export type MediaservicesGetBySubscriptionResponse = MediaService & { /** * The underlying HTTP response. */ @@ -4514,7 +4981,7 @@ export type MediaservicesGetBySubscriptionResponse = SubscriptionMediaService & /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionMediaService; + parsedBody: MediaService; }; }; @@ -4541,7 +5008,107 @@ export type MediaservicesListNextResponse = MediaServiceCollection & { /** * Contains response data for the listBySubscriptionNext operation. */ -export type MediaservicesListBySubscriptionNextResponse = SubscriptionMediaServiceCollection & { +export type MediaservicesListBySubscriptionNextResponse = MediaServiceCollection & { + /** + * 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: MediaServiceCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { + /** + * 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: PrivateLinkResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { + /** + * 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: PrivateEndpointConnectionListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4554,7 +5121,7 @@ export type MediaservicesListBySubscriptionNextResponse = SubscriptionMediaServi /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionMediaServiceCollection; + parsedBody: PrivateEndpointConnection; }; }; diff --git a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts index c8ab11eb07b1..74305f9b53f8 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/jobsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -85,16 +87,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -106,6 +113,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -121,13 +132,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts index 33ff3ad3e305..32699efdf4a9 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/liveEventsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,6 +86,7 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventActionInput, @@ -91,11 +94,15 @@ export { LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, LiveEventListResult, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -107,6 +114,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -122,13 +133,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts index 98d952aab9ef..0a13b0ddabfe 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/liveOutputsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,17 +86,22 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, LiveOutputListResult, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -106,6 +113,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -121,13 +132,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts index 90045ee066ae..14c435c4d828 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/mappers.ts @@ -284,6 +284,7 @@ export const TrackedResource: msRest.CompositeMapper = { } }, location: { + required: true, serializedName: "location", type: { name: "String" @@ -293,6 +294,24 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +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 Provider: msRest.CompositeMapper = { serializedName: "Provider", type: { @@ -376,11 +395,11 @@ export const MetricDimension: msRest.CompositeMapper = { } }; -export const Metric: msRest.CompositeMapper = { - serializedName: "Metric", +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", type: { name: "Composite", - className: "Metric", + className: "MetricSpecification", modelProperties: { name: { readOnly: true, @@ -419,6 +438,17 @@ export const Metric: msRest.CompositeMapper = { name: "String" } }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, dimensions: { readOnly: true, serializedName: "dimensions", @@ -436,12 +466,56 @@ export const Metric: msRest.CompositeMapper = { } }; +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + readOnly: true, + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + export const ServiceSpecification: msRest.CompositeMapper = { serializedName: "ServiceSpecification", type: { name: "Composite", className: "ServiceSpecification", modelProperties: { + logSpecifications: { + readOnly: true, + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, metricSpecifications: { readOnly: true, serializedName: "metricSpecifications", @@ -450,7 +524,7 @@ export const ServiceSpecification: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Metric" + className: "MetricSpecification" } } } @@ -459,11 +533,11 @@ export const ServiceSpecification: msRest.CompositeMapper = { } }; -export const MetricProperties: msRest.CompositeMapper = { - serializedName: "MetricProperties", +export const Properties: msRest.CompositeMapper = { + serializedName: "Properties", type: { name: "Composite", - className: "MetricProperties", + className: "Properties", modelProperties: { serviceSpecification: { readOnly: true, @@ -507,7 +581,7 @@ export const Operation: msRest.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MetricProperties" + className: "Properties" } } } @@ -599,6 +673,84 @@ export const SyncStorageKeysInput: msRest.CompositeMapper = { } }; +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties", + modelProperties: { + keyIdentifier: { + serializedName: "keyIdentifier", + type: { + name: "String" + } + }, + currentKeyIdentifier: { + readOnly: true, + serializedName: "currentKeyIdentifier", + type: { + name: "String" + } + } + } + } +}; + +export const AccountEncryption: msRest.CompositeMapper = { + serializedName: "AccountEncryption", + type: { + name: "Composite", + className: "AccountEncryption", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties" + } + } + } + } +}; + +export const MediaServiceIdentity: msRest.CompositeMapper = { + serializedName: "MediaServiceIdentity", + type: { + name: "Composite", + className: "MediaServiceIdentity", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + export const MediaService: msRest.CompositeMapper = { serializedName: "MediaService", type: { @@ -625,6 +777,27 @@ export const MediaService: msRest.CompositeMapper = { } } } + }, + storageAuthentication: { + nullable: true, + serializedName: "properties.storageAuthentication", + type: { + name: "String" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "AccountEncryption" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "MediaServiceIdentity" + } } } } @@ -726,29 +899,119 @@ export const EdgePolicies: msRest.CompositeMapper = { } }; -export const SubscriptionMediaService: msRest.CompositeMapper = { - serializedName: "SubscriptionMediaService", +export const CheckNameAvailabilityInput: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityInput", type: { name: "Composite", - className: "SubscriptionMediaService", + className: "CheckNameAvailabilityInput", modelProperties: { - ...TrackedResource.type.modelProperties, - mediaServiceId: { - nullable: false, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { readOnly: true, - serializedName: "properties.mediaServiceId", + serializedName: "id", type: { - name: "Uuid" + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" } }, - storageAccounts: { - serializedName: "properties.storageAccounts", + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageAccount" + className: "PrivateEndpointConnection" } } } @@ -757,22 +1020,63 @@ export const SubscriptionMediaService: msRest.CompositeMapper = { } }; -export const CheckNameAvailabilityInput: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityInput", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "CheckNameAvailabilityInput", + className: "PrivateLinkResource", modelProperties: { - name: { - serializedName: "name", + ...Resource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", type: { name: "String" } }, - type: { - serializedName: "type", + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } } } @@ -1146,6 +1450,7 @@ export const ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier: msR ...ContentKeyPolicyPlayReadyContentKeyLocation.type.modelProperties, keyId: { required: true, + nullable: true, serializedName: "keyId", type: { name: "Uuid" @@ -1449,6 +1754,7 @@ export const ContentKeyPolicySymmetricTokenKey: msRest.CompositeMapper = { ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties, keyValue: { required: true, + nullable: true, serializedName: "keyValue", type: { name: "ByteArray" @@ -1469,6 +1775,7 @@ export const ContentKeyPolicyRsaTokenKey: msRest.CompositeMapper = { ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties, exponent: { required: true, + nullable: true, serializedName: "exponent", type: { name: "ByteArray" @@ -1476,6 +1783,7 @@ export const ContentKeyPolicyRsaTokenKey: msRest.CompositeMapper = { }, modulus: { required: true, + nullable: true, serializedName: "modulus", type: { name: "ByteArray" @@ -1496,6 +1804,7 @@ export const ContentKeyPolicyX509CertificateTokenKey: msRest.CompositeMapper = { ...ContentKeyPolicyRestrictionTokenKey.type.modelProperties, rawBody: { required: true, + nullable: true, serializedName: "rawBody", type: { name: "ByteArray" @@ -1690,6 +1999,7 @@ export const ContentKeyPolicyFairPlayConfiguration: msRest.CompositeMapper = { ...ContentKeyPolicyConfiguration.type.modelProperties, ask: { required: true, + nullable: true, serializedName: "ask", type: { name: "ByteArray" @@ -1697,6 +2007,7 @@ export const ContentKeyPolicyFairPlayConfiguration: msRest.CompositeMapper = { }, fairPlayPfxPassword: { required: true, + nullable: true, serializedName: "fairPlayPfxPassword", type: { name: "String" @@ -1704,6 +2015,7 @@ export const ContentKeyPolicyFairPlayConfiguration: msRest.CompositeMapper = { }, fairPlayPfx: { required: true, + nullable: true, serializedName: "fairPlayPfx", type: { name: "String" @@ -1931,48 +2243,119 @@ export const Codec: msRest.CompositeMapper = { } }; -export const Audio: msRest.CompositeMapper = { - serializedName: "#Microsoft.Media.Audio", +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 Video: msRest.CompositeMapper = { + serializedName: "#Microsoft.Media.Video", type: { name: "Composite", polymorphicDiscriminator: Codec.type.polymorphicDiscriminator, uberParent: "Codec", - className: "Audio", + className: "Video", modelProperties: { ...Codec.type.modelProperties, - channels: { - serializedName: "channels", + keyFrameInterval: { + serializedName: "keyFrameInterval", type: { - name: "Number" + name: "TimeSpan" } }, - samplingRate: { - serializedName: "samplingRate", + stretchMode: { + serializedName: "stretchMode", type: { - name: "Number" + name: "String" } }, - 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", + syncMode: { + serializedName: "syncMode", type: { name: "String" } @@ -2026,6 +2409,12 @@ export const AudioAnalyzerPreset: msRest.CompositeMapper = { name: "String" } }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, experimentalOptions: { serializedName: "experimentalOptions", type: { @@ -2126,31 +2515,6 @@ export const CopyVideo: msRest.CompositeMapper = { } }; -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" - } - } - } - } -}; - export const Image: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.Image", type: { @@ -2362,46 +2726,6 @@ export const Filters: msRest.CompositeMapper = { } }; -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 VideoLayer: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.VideoLayer", type: { @@ -2571,6 +2895,12 @@ export const JpgImage: msRest.CompositeMapper = { } } } + }, + spriteColumn: { + serializedName: "spriteColumn", + type: { + name: "Number" + } } } } @@ -2989,6 +3319,26 @@ export const AbsoluteClipTime: msRest.CompositeMapper = { } }; +export const UtcClipTime: msRest.CompositeMapper = { + serializedName: "#Microsoft.Media.UtcClipTime", + type: { + name: "Composite", + polymorphicDiscriminator: ClipTime.type.polymorphicDiscriminator, + uberParent: "ClipTime", + className: "UtcClipTime", + modelProperties: { + ...ClipTime.type.modelProperties, + time: { + required: true, + serializedName: "time", + type: { + name: "DateTime" + } + } + } + } +}; + export const JobInputs: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.JobInputs", type: { @@ -4348,6 +4698,98 @@ export const LiveEventEncoding: msRest.CompositeMapper = { type: { name: "String" } + }, + stretchMode: { + serializedName: "stretchMode", + type: { + name: "String" + } + }, + keyFrameInterval: { + serializedName: "keyFrameInterval", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const LiveEventInputTrackSelection: msRest.CompositeMapper = { + serializedName: "LiveEventInputTrackSelection", + type: { + name: "Composite", + className: "LiveEventInputTrackSelection", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const LiveEventOutputTranscriptionTrack: msRest.CompositeMapper = { + serializedName: "LiveEventOutputTranscriptionTrack", + type: { + name: "Composite", + className: "LiveEventOutputTranscriptionTrack", + modelProperties: { + trackName: { + required: true, + serializedName: "trackName", + type: { + name: "String" + } + } + } + } +}; + +export const LiveEventTranscription: msRest.CompositeMapper = { + serializedName: "LiveEventTranscription", + type: { + name: "Composite", + className: "LiveEventTranscription", + modelProperties: { + language: { + serializedName: "language", + type: { + name: "String" + } + }, + inputTrackSelection: { + serializedName: "inputTrackSelection", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LiveEventInputTrackSelection" + } + } + } + }, + outputTranscriptionTrack: { + serializedName: "outputTranscriptionTrack", + type: { + name: "Composite", + className: "LiveEventOutputTranscriptionTrack" + } } } } @@ -4426,6 +4868,18 @@ export const LiveEvent: msRest.CompositeMapper = { className: "LiveEventEncoding" } }, + transcriptions: { + serializedName: "properties.transcriptions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LiveEventTranscription" + } + } + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -4447,12 +4901,18 @@ export const LiveEvent: msRest.CompositeMapper = { className: "CrossSiteAccessPolicies" } }, - vanityUrl: { - serializedName: "properties.vanityUrl", + useStaticHostname: { + serializedName: "properties.useStaticHostname", type: { name: "Boolean" } }, + hostnamePrefix: { + serializedName: "properties.hostnamePrefix", + type: { + name: "String" + } + }, streamOptions: { serializedName: "properties.streamOptions", type: { @@ -4777,34 +5237,6 @@ export const MediaServiceCollection: msRest.CompositeMapper = { } }; -export const SubscriptionMediaServiceCollection: msRest.CompositeMapper = { - serializedName: "SubscriptionMediaServiceCollection", - type: { - name: "Composite", - className: "SubscriptionMediaServiceCollection", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubscriptionMediaService" - } - } - } - }, - odatanextLink: { - serializedName: "@odata\\.nextLink", - type: { - name: "String" - } - } - } - } -}; - export const AssetCollection: msRest.CompositeMapper = { serializedName: "AssetCollection", type: { @@ -5125,19 +5557,19 @@ export const discriminators = { 'Codec' : Codec, 'Codec.#Microsoft.Media.Audio' : Audio, 'Codec.#Microsoft.Media.AacAudio' : AacAudio, + 'Layer' : Layer, + 'Codec.#Microsoft.Media.Video' : Video, '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.Video' : Video, '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' : Layer, 'Layer.#Microsoft.Media.VideoLayer' : VideoLayer, 'Layer.#Microsoft.Media.H264Layer' : H264Layer, 'Codec.#Microsoft.Media.H264Video' : H264Video, @@ -5156,6 +5588,7 @@ export const discriminators = { '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, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts index edb31ff40d85..951ab0116893 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/mediaservicesMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -87,6 +89,7 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, ListEdgePoliciesInput, LiveEvent, @@ -94,11 +97,15 @@ export { LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, MediaServiceCollection, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -110,6 +117,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -125,8 +136,6 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, - SubscriptionMediaServiceCollection, SyncStorageKeysInput, TrackedResource, TrackPropertyCondition, @@ -134,6 +143,7 @@ export { Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts index 1a1c7d9e60bf..23977ee7c6d1 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/operationsMappers.ts @@ -9,12 +9,13 @@ export { discriminators, ApiError, - Metric, + LogSpecification, MetricDimension, - MetricProperties, + MetricSpecification, ODataError, Operation, OperationCollection, OperationDisplay, + Properties, ServiceSpecification } from "../models/mappers"; diff --git a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts index 01a6fe028c32..d9b576228754 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/parameters.ts @@ -144,6 +144,16 @@ export const locationName: msRest.OperationURLParameter = { } } }; +export const name: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..5075f3b54cc3 --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,146 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + H264Layer, + H264Video, + Hls, + Image, + ImageFormat, + IPAccessControl, + IPRange, + Job, + JobError, + JobErrorDetail, + JobInput, + JobInputAsset, + JobInputClip, + JobInputHttp, + JobInputs, + 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, + PrivateEndpointConnectionListResult, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProxyResource, + Rectangle, + Resource, + StandardEncoderPreset, + StorageAccount, + StreamingEndpoint, + StreamingEndpointAccessControl, + StreamingLocator, + StreamingLocatorContentKey, + StreamingPolicy, + StreamingPolicyContentKey, + StreamingPolicyContentKeys, + StreamingPolicyFairPlayConfiguration, + StreamingPolicyPlayReadyConfiguration, + StreamingPolicyWidevineConfiguration, + TrackedResource, + TrackPropertyCondition, + TrackSelection, + Transform, + TransformOutput, + TransportStreamFormat, + UtcClipTime, + Video, + VideoAnalyzerPreset, + VideoLayer, + VideoOverlay +} from "../models/mappers"; diff --git a/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..ab23b0f547ce --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,146 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * 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, + 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, + H264Layer, + H264Video, + Hls, + Image, + ImageFormat, + IPAccessControl, + IPRange, + Job, + JobError, + JobErrorDetail, + JobInput, + JobInputAsset, + JobInputClip, + JobInputHttp, + JobInputs, + 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, + PrivateLinkResourceListResult, + PrivateLinkServiceConnectionState, + ProxyResource, + Rectangle, + Resource, + StandardEncoderPreset, + StorageAccount, + StreamingEndpoint, + StreamingEndpointAccessControl, + StreamingLocator, + StreamingLocatorContentKey, + StreamingPolicy, + StreamingPolicyContentKey, + StreamingPolicyContentKeys, + StreamingPolicyFairPlayConfiguration, + StreamingPolicyPlayReadyConfiguration, + StreamingPolicyWidevineConfiguration, + TrackedResource, + TrackPropertyCondition, + TrackSelection, + Transform, + TransformOutput, + TransportStreamFormat, + UtcClipTime, + Video, + VideoAnalyzerPreset, + VideoLayer, + VideoOverlay +} from "../models/mappers"; diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts index 1c6e233f9108..9872245b246a 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingEndpointsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,16 +86,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -105,6 +112,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -122,13 +133,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts index 16896df144a6..19bbbba5abbc 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingLocatorsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,6 +86,7 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, ListContentKeysResponse, ListPathsResponse, @@ -92,10 +95,14 @@ export { LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -107,6 +114,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -124,13 +135,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts index 67c4d51eae14..9b529a4c6ea3 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/streamingPoliciesMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,16 +86,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -105,6 +112,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -121,13 +132,13 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, Transform, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts b/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts index 00d0e0dda60a..861b009193ca 100644 --- a/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts +++ b/sdk/mediaservices/arm-mediaservices/src/models/transformsMappers.ts @@ -10,6 +10,7 @@ export { discriminators, AacAudio, AbsoluteClipTime, + AccountEncryption, AccountFilter, AkamaiAccessControl, AkamaiSignatureHeaderAuthenticationKey, @@ -19,6 +20,7 @@ export { Audio, AudioAnalyzerPreset, AudioOverlay, + AzureEntityResource, BaseResource, BuiltInStandardEncoderPreset, CbcsDrmConfiguration, @@ -84,16 +86,21 @@ export { JpgFormat, JpgImage, JpgLayer, + KeyVaultProperties, Layer, LiveEvent, LiveEventEncoding, LiveEventEndpoint, LiveEventInput, LiveEventInputAccessControl, + LiveEventInputTrackSelection, + LiveEventOutputTranscriptionTrack, LiveEventPreview, LiveEventPreviewAccessControl, + LiveEventTranscription, LiveOutput, MediaService, + MediaServiceIdentity, Mp4Format, MultiBitrateFormat, NoEncryption, @@ -105,6 +112,10 @@ export { PngLayer, PresentationTimeRange, Preset, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, Rectangle, Resource, @@ -120,7 +131,6 @@ export { StreamingPolicyFairPlayConfiguration, StreamingPolicyPlayReadyConfiguration, StreamingPolicyWidevineConfiguration, - SubscriptionMediaService, TrackedResource, TrackPropertyCondition, TrackSelection, @@ -128,6 +138,7 @@ export { TransformCollection, TransformOutput, TransportStreamFormat, + UtcClipTime, Video, VideoAnalyzerPreset, VideoLayer, diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts index d0576512912c..36af2612f17c 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/index.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/index.ts @@ -11,6 +11,8 @@ export * from "./accountFilters"; export * from "./operations"; export * from "./mediaservices"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; export * from "./locations"; export * from "./assets"; export * from "./assetFilters"; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts b/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts index c06e63ea4dae..178634d560c3 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/liveEvents.ts @@ -28,8 +28,8 @@ export class LiveEvents { } /** - * Lists the Live Events in the account. - * @summary List Live Events + * Lists all the live events in the account. + * @summary List live events * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param [options] The optional parameters @@ -61,11 +61,11 @@ export class LiveEvents { } /** - * Gets a Live Event. + * Gets properties of a live event. * @summary Get Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -73,14 +73,14 @@ export class LiveEvents { /** * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param callback The callback */ get(resourceGroupName: string, accountName: string, liveEventName: 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 liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param options The optional parameters * @param callback The callback */ @@ -98,12 +98,12 @@ export class LiveEvents { } /** - * Creates a Live Event. + * Creates a new live event. * @summary Create Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param parameters Live Event properties needed for creation. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -113,11 +113,11 @@ export class LiveEvents { } /** - * Updates a existing Live Event. + * Updates settings on an existing live event. * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param parameters Live Event properties needed for creation. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for patch. * @param [options] The optional parameters * @returns Promise */ @@ -127,11 +127,11 @@ export class LiveEvents { } /** - * Deletes a Live Event. + * Deletes a live event. * @summary Delete Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -141,11 +141,26 @@ export class LiveEvents { } /** - * Starts an existing Live Event. + * A live event is in StandBy state after allocation completes, and is ready to start. + * @summary Allocate resources for a live event + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param [options] The optional parameters + * @returns Promise + */ + allocate(resourceGroupName: string, accountName: string, liveEventName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginAllocate(resourceGroupName,accountName,liveEventName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * A live event in Stopped or StandBy state will be in Running state after the start operation + * completes. * @summary Start Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -155,11 +170,11 @@ export class LiveEvents { } /** - * Stops an existing Live Event. + * Stops a running live event. * @summary Stop Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param parameters LiveEvent stop parameters * @param [options] The optional parameters * @returns Promise @@ -170,11 +185,13 @@ export class LiveEvents { } /** - * Resets an existing Live Event. + * Resets an existing live event. All live outputs for the live event are deleted and the live + * event is stopped and will be started again. All assets used by the live outputs and streaming + * locators created on these assets are unaffected. * @summary Reset Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -184,12 +201,12 @@ export class LiveEvents { } /** - * Creates a Live Event. + * Creates a new live event. * @summary Create Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param parameters Live Event properties needed for creation. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -207,11 +224,11 @@ export class LiveEvents { } /** - * Updates a existing Live Event. + * Updates settings on an existing live event. * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param parameters Live Event properties needed for creation. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for patch. * @param [options] The optional parameters * @returns Promise */ @@ -229,11 +246,11 @@ export class LiveEvents { } /** - * Deletes a Live Event. + * Deletes a live event. * @summary Delete Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -250,11 +267,33 @@ export class LiveEvents { } /** - * Starts an existing Live Event. + * A live event is in StandBy state after allocation completes, and is ready to start. + * @summary Allocate resources for a live event + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param [options] The optional parameters + * @returns Promise + */ + beginAllocate(resourceGroupName: string, accountName: string, liveEventName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + liveEventName, + options + }, + beginAllocateOperationSpec, + options); + } + + /** + * A live event in Stopped or StandBy state will be in Running state after the start operation + * completes. * @summary Start Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -271,11 +310,11 @@ export class LiveEvents { } /** - * Stops an existing Live Event. + * Stops a running live event. * @summary Stop Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param parameters LiveEvent stop parameters * @param [options] The optional parameters * @returns Promise @@ -294,11 +333,13 @@ export class LiveEvents { } /** - * Resets an existing Live Event. + * Resets an existing live event. All live outputs for the live event are deleted and the live + * event is stopped and will be started again. All assets used by the live outputs and streaming + * locators created on these assets are unaffected. * @summary Reset Live Event * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -315,8 +356,8 @@ export class LiveEvents { } /** - * Lists the Live Events in the account. - * @summary List Live Events + * Lists all the live events in the account. + * @summary List live events * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -425,7 +466,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.LiveEvent }, - 202: { + 201: { bodyMapper: Mappers.LiveEvent }, default: { @@ -497,6 +538,31 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginAllocateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.liveEventName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + const beginStartOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start", diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts b/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts index 2dec4c75f9fe..7424e00d84d5 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/liveOutputs.ts @@ -28,11 +28,11 @@ export class LiveOutputs { } /** - * Lists the Live Outputs in the Live Event. + * Lists the live outputs of a live event. * @summary List Live Outputs * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param [options] The optional parameters * @returns Promise */ @@ -40,14 +40,14 @@ export class LiveOutputs { /** * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param callback The callback */ list(resourceGroupName: string, accountName: string, liveEventName: 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 liveEventName The name of the Live Event. + * @param liveEventName The name of the live event, maximum length is 32. * @param options The optional parameters * @param callback The callback */ @@ -65,12 +65,12 @@ export class LiveOutputs { } /** - * Gets a Live Output. + * Gets a live output. * @summary Get Live Output * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param [options] The optional parameters * @returns Promise */ @@ -78,16 +78,16 @@ export class LiveOutputs { /** * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param callback The callback */ get(resourceGroupName: string, accountName: string, liveEventName: string, liveOutputName: 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 liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param options The optional parameters * @param callback The callback */ @@ -106,12 +106,12 @@ export class LiveOutputs { } /** - * Creates a Live Output. + * Creates a new live output. * @summary Create Live Output * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param parameters Live Output properties needed for creation. * @param [options] The optional parameters * @returns Promise @@ -122,12 +122,13 @@ export class LiveOutputs { } /** - * Deletes a Live Output. + * Deletes a live output. Deleting a live output does not delete the asset the live output is + * writing to. * @summary Delete Live Output * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param [options] The optional parameters * @returns Promise */ @@ -137,12 +138,12 @@ export class LiveOutputs { } /** - * Creates a Live Output. + * Creates a new live output. * @summary Create Live Output * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param parameters Live Output properties needed for creation. * @param [options] The optional parameters * @returns Promise @@ -162,12 +163,13 @@ export class LiveOutputs { } /** - * Deletes a Live Output. + * Deletes a live output. Deleting a live output does not delete the asset the live output is + * writing to. * @summary Delete Live Output * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param liveEventName The name of the Live Event. - * @param liveOutputName The name of the Live Output. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. * @param [options] The optional parameters * @returns Promise */ @@ -185,7 +187,7 @@ export class LiveOutputs { } /** - * Lists the Live Outputs in the Live Event. + * Lists the live outputs of a live event. * @summary List Live Outputs * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters @@ -297,7 +299,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.LiveOutput }, - 202: { + 201: { bodyMapper: Mappers.LiveOutput }, default: { diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts index 92537cb6726a..1a12b596d4ac 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/mediaservices.ts @@ -280,13 +280,13 @@ export class Mediaservices { /** * @param callback The callback */ - listBySubscription(callback: msRest.ServiceCallback): void; + listBySubscription(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -307,14 +307,14 @@ export class Mediaservices { * @param accountName The Media Services account name. * @param callback The callback */ - getBySubscription(accountName: string, callback: msRest.ServiceCallback): void; + 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 { + 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, @@ -365,14 +365,14 @@ export class Mediaservices { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(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 */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -485,6 +485,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, + 204: {}, default: { bodyMapper: Mappers.ApiError } @@ -600,7 +601,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SubscriptionMediaServiceCollection + bodyMapper: Mappers.MediaServiceCollection }, default: { bodyMapper: Mappers.ApiError @@ -624,7 +625,7 @@ const getBySubscriptionOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SubscriptionMediaService + bodyMapper: Mappers.MediaService }, default: { bodyMapper: Mappers.ApiError @@ -666,7 +667,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SubscriptionMediaServiceCollection + bodyMapper: Mappers.MediaServiceCollection }, default: { bodyMapper: Mappers.ApiError diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..30c9df1bae49 --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operations/privateEndpointConnections.ts @@ -0,0 +1,286 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMediaServicesContext } from "../azureMediaServicesContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: AzureMediaServicesContext; + + /** + * Create a PrivateEndpointConnections. + * @param {AzureMediaServicesContext} client Reference to the service client. + */ + constructor(client: AzureMediaServicesContext) { + this.client = client; + } + + /** + * Get all private endpoint connections. + * @summary Get all private endpoint connections. + * @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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get private endpoint connection. + * @summary Get private endpoint connection. + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, name: 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 name + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, name: 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 name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + name, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update private endpoint connection. + * @summary Update private endpoint connection. + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param parameters The request parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, accountName: string, name: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param parameters The request parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, name: string, parameters: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param parameters The request parameters + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, accountName: string, name: string, parameters: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, accountName: string, name: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + name, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete private endpoint connection. + * @summary Delete private endpoint connection. + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, name: 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 name + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, name: 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 name + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + name, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts b/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..ef2780a4db9d --- /dev/null +++ b/sdk/mediaservices/arm-mediaservices/src/operations/privateLinkResources.ts @@ -0,0 +1,151 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMediaServicesContext } from "../azureMediaServicesContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: AzureMediaServicesContext; + + /** + * Create a PrivateLinkResources. + * @param {AzureMediaServicesContext} client Reference to the service client. + */ + constructor(client: AzureMediaServicesContext) { + this.client = client; + } + + /** + * Get list of group IDs. + * @summary Get list of group IDs. + * @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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get group ID. + * @summary Get group ID. + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, name: 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 name + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, name: 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 name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + name, + options + }, + getOperationSpec, + 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}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.name + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.ApiError + } + }, + serializer +}; diff --git a/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts b/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts index 51a00cbba68c..8b54675a8f93 100644 --- a/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts +++ b/sdk/mediaservices/arm-mediaservices/src/operations/streamingEndpoints.ts @@ -28,7 +28,7 @@ export class StreamingEndpoints { } /** - * Lists the StreamingEndpoints in the account. + * Lists the streaming endpoints in the account. * @summary List StreamingEndpoints * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -61,11 +61,11 @@ export class StreamingEndpoints { } /** - * Gets a StreamingEndpoint. + * Gets a streaming endpoint. * @summary Get StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -73,14 +73,14 @@ export class StreamingEndpoints { /** * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param callback The callback */ get(resourceGroupName: string, accountName: string, streamingEndpointName: 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 streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param options The optional parameters * @param callback The callback */ @@ -98,12 +98,12 @@ export class StreamingEndpoints { } /** - * Creates a StreamingEndpoint. + * Creates a streaming endpoint. * @summary Create StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint properties needed for creation. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -113,12 +113,12 @@ export class StreamingEndpoints { } /** - * Updates a existing StreamingEndpoint. + * Updates a existing streaming endpoint. * @summary Update StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint properties needed for creation. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -128,11 +128,11 @@ export class StreamingEndpoints { } /** - * Deletes a StreamingEndpoint. + * Deletes a streaming endpoint. * @summary Delete StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -142,11 +142,11 @@ export class StreamingEndpoints { } /** - * Starts an existing StreamingEndpoint. + * Starts an existing streaming endpoint. * @summary Start StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -156,11 +156,11 @@ export class StreamingEndpoints { } /** - * Stops an existing StreamingEndpoint. + * Stops an existing streaming endpoint. * @summary Stop StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -170,12 +170,12 @@ export class StreamingEndpoints { } /** - * Scales an existing StreamingEndpoint. + * Scales an existing streaming endpoint. * @summary Scale StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint scale parameters + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint scale parameters * @param [options] The optional parameters * @returns Promise */ @@ -185,12 +185,12 @@ export class StreamingEndpoints { } /** - * Creates a StreamingEndpoint. + * Creates a streaming endpoint. * @summary Create StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint properties needed for creation. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -208,12 +208,12 @@ export class StreamingEndpoints { } /** - * Updates a existing StreamingEndpoint. + * Updates a existing streaming endpoint. * @summary Update StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint properties needed for creation. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. * @param [options] The optional parameters * @returns Promise */ @@ -231,11 +231,11 @@ export class StreamingEndpoints { } /** - * Deletes a StreamingEndpoint. + * Deletes a streaming endpoint. * @summary Delete StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -252,11 +252,11 @@ export class StreamingEndpoints { } /** - * Starts an existing StreamingEndpoint. + * Starts an existing streaming endpoint. * @summary Start StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -273,11 +273,11 @@ export class StreamingEndpoints { } /** - * Stops an existing StreamingEndpoint. + * Stops an existing streaming endpoint. * @summary Stop StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param [options] The optional parameters * @returns Promise */ @@ -294,12 +294,12 @@ export class StreamingEndpoints { } /** - * Scales an existing StreamingEndpoint. + * Scales an existing streaming endpoint. * @summary Scale StreamingEndpoint * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the StreamingEndpoint. - * @param parameters StreamingEndpoint scale parameters + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint scale parameters * @param [options] The optional parameters * @returns Promise */ @@ -317,7 +317,7 @@ export class StreamingEndpoints { } /** - * Lists the StreamingEndpoints in the account. + * Lists the streaming endpoints in the account. * @summary List StreamingEndpoints * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters @@ -427,7 +427,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.StreamingEndpoint }, - 202: { + 201: { bodyMapper: Mappers.StreamingEndpoint }, default: {