Skip to content

Commit

Permalink
Generated from 045ca8d6c5b7287febf918d43b11ff0e7a31a048
Browse files Browse the repository at this point in the history
Fixed spec validation errors.
  • Loading branch information
SDK Automation committed Dec 6, 2019
1 parent 1aaa9da commit b492779
Show file tree
Hide file tree
Showing 18 changed files with 193 additions and 44 deletions.
3 changes: 1 addition & 2 deletions sdk/mediaservices/arm-mediaservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ npm install @azure/arm-mediaservices

##### Install @azure/ms-rest-nodeauth

- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth@"^3.0.0"
npm install @azure/ms-rest-nodeauth
```

##### Sample code
Expand Down
14 changes: 7 additions & 7 deletions sdk/mediaservices/arm-mediaservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "AzureMediaServices Library with typescript type definitions for node.js and browser.",
"version": "7.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
},
"keywords": [
"node",
Expand All @@ -20,11 +20,11 @@
"module": "./esm/azureMediaServices.js",
"types": "./esm/azureMediaServices.d.ts",
"devDependencies": {
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/mediaservices/arm-mediaservices",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/mediaservices/arm-mediaservices/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ mainFields: ['module', 'main'] }),
nodeResolve({ module: true }),
sourcemaps()
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
ContentKeyPolicyCollection,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
119 changes: 86 additions & 33 deletions sdk/mediaservices/arm-mediaservices/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,20 @@ export interface ContentKeyPolicyPlayReadyConfiguration {
responseCustomData?: string;
}

/**
* An interface representing ContentKeyPolicyFairPlayOfflineRentalConfiguration.
*/
export interface ContentKeyPolicyFairPlayOfflineRentalConfiguration {
/**
* Playback duration
*/
playbackDurationSeconds: number;
/**
* Storage duration
*/
storageDurationSeconds: number;
}

/**
* Specifies a configuration for FairPlay licenses.
*/
Expand All @@ -980,14 +994,18 @@ export interface ContentKeyPolicyFairPlayConfiguration {
*/
fairPlayPfx: string;
/**
* The rental and lease key type. Possible values include: 'Unknown', 'Undefined',
* The rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'DualExpiry',
* 'PersistentUnlimited', 'PersistentLimited'
*/
rentalAndLeaseKeyType: ContentKeyPolicyFairPlayRentalAndLeaseKeyType;
/**
* The rental duration. Must be greater than or equal to 0.
*/
rentalDuration: number;
/**
* Offline rental policy
*/
offlineRentalConfiguration?: ContentKeyPolicyFairPlayOfflineRentalConfiguration;
}

/**
Expand Down Expand Up @@ -1190,6 +1208,10 @@ export interface FaceDetectorPreset {
* values include: 'SourceResolution', 'StandardDefinition'
*/
resolution?: AnalysisResolution;
/**
* Dictionary containing key value pairs for parameters not exposed in the preset itself
*/
experimentalOptions?: { [propertyName: string]: string };
}

/**
Expand All @@ -1209,20 +1231,20 @@ export interface AudioAnalyzerPreset {
odatatype: "#Microsoft.Media.AudioAnalyzerPreset";
/**
* The language for the audio payload in the input using the BCP-47 format of 'language
* tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and
* 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese
* ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and
* 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). 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. This language detection feature currently
* supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and
* Portuguese. 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'."
* 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
*/
audioLanguage?: string;
/**
* Dictionary containing key value pairs for parameters not exposed in the preset itself
*/
experimentalOptions?: { [propertyName: string]: string };
}

/**
Expand Down Expand Up @@ -2048,8 +2070,8 @@ export interface BuiltInStandardEncoderPreset {
/**
* The built-in preset to be used for encoding videos. Possible values include:
* 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming',
* 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p',
* 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
* 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding',
* 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
*/
presetName: EncoderNamedPreset;
}
Expand Down Expand Up @@ -2087,20 +2109,20 @@ export interface VideoAnalyzerPreset {
odatatype: "#Microsoft.Media.VideoAnalyzerPreset";
/**
* The language for the audio payload in the input using the BCP-47 format of 'language
* tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and
* 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese
* ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and
* 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). 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. This language detection feature currently
* supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and
* Portuguese. 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'."
* 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
*/
audioLanguage?: string;
/**
* Dictionary containing key value pairs for parameters not exposed in the preset itself
*/
experimentalOptions?: { [propertyName: string]: string };
/**
* Defines the type of insights that you want the service to generate. The allowed values are
* 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If
Expand Down Expand Up @@ -2521,6 +2543,16 @@ export interface JobOutput {
* Transform.
*/
label?: string;
/**
* The UTC date and time at which this Job Output began processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: Date;
/**
* The UTC date and time at which this Job Output finished processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly endTime?: Date;
}

/**
Expand Down Expand Up @@ -2562,6 +2594,16 @@ export interface JobOutputAsset {
* Transform.
*/
label?: string;
/**
* The UTC date and time at which this Job Output began processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: Date;
/**
* The UTC date and time at which this Job Output finished processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly endTime?: Date;
/**
* The name of the output Asset.
*/
Expand Down Expand Up @@ -2611,6 +2653,16 @@ export interface Job extends ProxyResource {
* Customer provided key, value pairs that will be returned in Job and JobOutput state events.
*/
correlationData?: { [propertyName: string]: string };
/**
* The UTC date and time at which this Job began processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: Date;
/**
* The UTC date and time at which this Job finished processing.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly endTime?: Date;
}

/**
Expand Down Expand Up @@ -3483,7 +3535,7 @@ export interface ContentKeyPoliciesListOptionalParams extends msRest.RequestOpti
*/
top?: number;
/**
* Specifies the key by which the result collection should be ordered.
* Specifies the the key by which the result collection should be ordered.
*/
orderby?: string;
}
Expand Down Expand Up @@ -3890,11 +3942,12 @@ export type ContentKeyPolicyRestrictionTokenType = 'Unknown' | 'Swt' | 'Jwt';

/**
* Defines values for ContentKeyPolicyFairPlayRentalAndLeaseKeyType.
* Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', 'PersistentLimited'
* Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited',
* 'PersistentLimited'
* @readonly
* @enum {string}
*/
export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefined' | 'PersistentUnlimited' | 'PersistentLimited';
export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefined' | 'DualExpiry' | 'PersistentUnlimited' | 'PersistentLimited';

/**
* Defines values for AacAudioProfile.
Expand Down Expand Up @@ -3972,12 +4025,12 @@ export type H264Complexity = 'Speed' | 'Balanced' | 'Quality';
* Defines values for EncoderNamedPreset.
* Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p',
* 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio',
* 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p',
* 'H264MultipleBitrateSD'
* 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'H264MultipleBitrate1080p',
* 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
* @readonly
* @enum {string}
*/
export type EncoderNamedPreset = 'H264SingleBitrateSD' | 'H264SingleBitrate720p' | 'H264SingleBitrate1080p' | 'AdaptiveStreaming' | 'AACGoodQualityAudio' | 'ContentAwareEncodingExperimental' | 'H264MultipleBitrate1080p' | 'H264MultipleBitrate720p' | 'H264MultipleBitrateSD';
export type EncoderNamedPreset = 'H264SingleBitrateSD' | 'H264SingleBitrate720p' | 'H264SingleBitrate1080p' | 'AdaptiveStreaming' | 'AACGoodQualityAudio' | 'ContentAwareEncodingExperimental' | 'ContentAwareEncoding' | 'H264MultipleBitrate1080p' | 'H264MultipleBitrate720p' | 'H264MultipleBitrateSD';

/**
* Defines values for InsightsType.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export {
ContentKeyPolicyClearKeyConfiguration,
ContentKeyPolicyConfiguration,
ContentKeyPolicyFairPlayConfiguration,
ContentKeyPolicyFairPlayOfflineRentalConfiguration,
ContentKeyPolicyOpenRestriction,
ContentKeyPolicyOption,
ContentKeyPolicyPlayReadyConfiguration,
Expand Down
Loading

0 comments on commit b492779

Please sign in to comment.