diff --git a/src/SDKs/Media/Management.Media/Generated/AzureMediaServicesClient.cs b/src/SDKs/Media/Management.Media/Generated/AzureMediaServicesClient.cs index 3a09164f5969..d4b58906a31a 100644 --- a/src/SDKs/Media/Management.Media/Generated/AzureMediaServicesClient.cs +++ b/src/SDKs/Media/Management.Media/Generated/AzureMediaServicesClient.cs @@ -447,6 +447,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); CustomInitialize(); diff --git a/src/SDKs/Media/Management.Media/Generated/Models/AbsoluteClipTime.cs b/src/SDKs/Media/Management.Media/Generated/Models/AbsoluteClipTime.cs new file mode 100644 index 000000000000..a14417720240 --- /dev/null +++ b/src/SDKs/Media/Management.Media/Generated/Models/AbsoluteClipTime.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies the clip time as an absolute time position in the media file. + /// The absolute time can point to a different position depending on + /// whether the media file starts from a timestamp of zero or not. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.AbsoluteClipTime")] + public partial class AbsoluteClipTime : ClipTime + { + /// + /// Initializes a new instance of the AbsoluteClipTime class. + /// + public AbsoluteClipTime() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AbsoluteClipTime class. + /// + /// The time position on the timeline of the input + /// media. It is usually speicified as an ISO8601 period. e.g PT30S for + /// 30 seconds. + public AbsoluteClipTime(System.TimeSpan time) + { + Time = time; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the time position on the timeline of the input media. + /// It is usually speicified as an ISO8601 period. e.g PT30S for 30 + /// seconds. + /// + [JsonProperty(PropertyName = "time")] + public System.TimeSpan Time { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/src/SDKs/Media/Management.Media/Generated/Models/ClipTime.cs b/src/SDKs/Media/Management.Media/Generated/Models/ClipTime.cs new file mode 100644 index 000000000000..eb4774b91b5c --- /dev/null +++ b/src/SDKs/Media/Management.Media/Generated/Models/ClipTime.cs @@ -0,0 +1,36 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using System.Linq; + + /// + /// Base class for specifying a clip time. Use sub classes of this class to + /// specify the time position in the media. + /// + public partial class ClipTime + { + /// + /// Initializes a new instance of the ClipTime class. + /// + public ClipTime() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/Media/Management.Media/Generated/Models/JobInputAsset.cs b/src/SDKs/Media/Management.Media/Generated/Models/JobInputAsset.cs index d62d4a998c46..37c20bbf6e74 100644 --- a/src/SDKs/Media/Management.Media/Generated/Models/JobInputAsset.cs +++ b/src/SDKs/Media/Management.Media/Generated/Models/JobInputAsset.cs @@ -36,6 +36,12 @@ public JobInputAsset() /// The name of the input Asset. /// List of files. Required for JobInputHttp. /// Maximum of 4000 characters each. + /// Defines a point on the timeline of the input + /// media at which processing will start. Defaults to the beginning of + /// the input media. + /// Defines a point on the timeline of the input + /// media at which processing will end. Defaults to the end of the + /// input media. /// A label that is assigned to a JobInputClip, /// that is used to satisfy a reference used in the Transform. For /// example, a Transform can be authored so as to take an image file @@ -43,8 +49,8 @@ public JobInputAsset() /// video before it is encoded. When submitting a Job, exactly one of /// the JobInputs should be the image file, and it should have the /// label 'xyz'. - public JobInputAsset(string assetName, IList files = default(IList), string label = default(string)) - : base(files, label) + public JobInputAsset(string assetName, IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string)) + : base(files, start, end, label) { AssetName = assetName; CustomInit(); diff --git a/src/SDKs/Media/Management.Media/Generated/Models/JobInputClip.cs b/src/SDKs/Media/Management.Media/Generated/Models/JobInputClip.cs index a1623659985b..3c88545d610c 100644 --- a/src/SDKs/Media/Management.Media/Generated/Models/JobInputClip.cs +++ b/src/SDKs/Media/Management.Media/Generated/Models/JobInputClip.cs @@ -34,6 +34,12 @@ public JobInputClip() /// /// List of files. Required for JobInputHttp. /// Maximum of 4000 characters each. + /// Defines a point on the timeline of the input + /// media at which processing will start. Defaults to the beginning of + /// the input media. + /// Defines a point on the timeline of the input + /// media at which processing will end. Defaults to the end of the + /// input media. /// A label that is assigned to a JobInputClip, /// that is used to satisfy a reference used in the Transform. For /// example, a Transform can be authored so as to take an image file @@ -41,9 +47,11 @@ public JobInputClip() /// video before it is encoded. When submitting a Job, exactly one of /// the JobInputs should be the image file, and it should have the /// label 'xyz'. - public JobInputClip(IList files = default(IList), string label = default(string)) + public JobInputClip(IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string)) { Files = files; + Start = start; + End = end; Label = label; CustomInit(); } @@ -60,6 +68,21 @@ public JobInputClip() [JsonProperty(PropertyName = "files")] public IList Files { get; set; } + /// + /// Gets or sets defines a point on the timeline of the input media at + /// which processing will start. Defaults to the beginning of the input + /// media. + /// + [JsonProperty(PropertyName = "start")] + public ClipTime Start { get; set; } + + /// + /// Gets or sets defines a point on the timeline of the input media at + /// which processing will end. Defaults to the end of the input media. + /// + [JsonProperty(PropertyName = "end")] + public ClipTime End { get; set; } + /// /// Gets or sets a label that is assigned to a JobInputClip, that is /// used to satisfy a reference used in the Transform. For example, a diff --git a/src/SDKs/Media/Management.Media/Generated/Models/JobInputHttp.cs b/src/SDKs/Media/Management.Media/Generated/Models/JobInputHttp.cs index 3b9e36d4faa3..58ec7053e3e0 100644 --- a/src/SDKs/Media/Management.Media/Generated/Models/JobInputHttp.cs +++ b/src/SDKs/Media/Management.Media/Generated/Models/JobInputHttp.cs @@ -34,6 +34,12 @@ public JobInputHttp() /// /// List of files. Required for JobInputHttp. /// Maximum of 4000 characters each. + /// Defines a point on the timeline of the input + /// media at which processing will start. Defaults to the beginning of + /// the input media. + /// Defines a point on the timeline of the input + /// media at which processing will end. Defaults to the end of the + /// input media. /// A label that is assigned to a JobInputClip, /// that is used to satisfy a reference used in the Transform. For /// example, a Transform can be authored so as to take an image file @@ -45,8 +51,8 @@ public JobInputHttp() /// concatenated with provided file names. If no base uri is given, /// then the provided file list is assumed to be fully qualified uris. /// Maximum length of 4000 characters. - public JobInputHttp(IList files = default(IList), string label = default(string), string baseUri = default(string)) - : base(files, label) + public JobInputHttp(IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string), string baseUri = default(string)) + : base(files, start, end, label) { BaseUri = baseUri; CustomInit(); diff --git a/src/SDKs/Media/Management.Media/Generated/Models/VideoAnalyzerPreset.cs b/src/SDKs/Media/Management.Media/Generated/Models/VideoAnalyzerPreset.cs index ac84b6a116e9..1797d3c80694 100644 --- a/src/SDKs/Media/Management.Media/Generated/Models/VideoAnalyzerPreset.cs +++ b/src/SDKs/Media/Management.Media/Generated/Models/VideoAnalyzerPreset.cs @@ -49,11 +49,18 @@ public VideoAnalyzerPreset() /// best with audio recordings with clearly discernable speech. If /// automatic detection fails to find the language, transcription would /// fallback to 'en-US'." - /// The type of insights to be - /// extracted. If not set then based on the content the type will - /// selected. If the content is audio only then only audio insights - /// are extracted and if it is video only. Possible values include: - /// 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' + /// Defines the type of insights that + /// you want the service to generate. The allowed values are + /// 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The + /// default is AllInsights. If you set this to AllInsights and the + /// input is audio only, then only audio insights are generated. + /// Similarly if the input is video only, then only video insights are + /// generated. It is recommended that you not use AudioInsightsOnly if + /// you expect some of your inputs to be video only; or use + /// VideoInsightsOnly if you expect some of your inputs to be audio + /// only. Your Jobs in such conditions would error out. Possible values + /// include: 'AudioInsightsOnly', 'VideoInsightsOnly', + /// 'AllInsights' public VideoAnalyzerPreset(string audioLanguage = default(string), InsightsType? insightsToExtract = default(InsightsType?)) : base(audioLanguage) { @@ -67,10 +74,16 @@ public VideoAnalyzerPreset() partial void CustomInit(); /// - /// Gets or sets the type of insights to be extracted. If not set then - /// based on the content the type will selected. If the content is - /// audio only then only audio insights are extracted and if it is - /// video only. Possible values include: 'AudioInsightsOnly', + /// Gets or sets defines the type of insights that you want the service + /// to generate. The allowed values are 'AudioInsightsOnly', + /// 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. + /// If you set this to AllInsights and the input is audio only, then + /// only audio insights are generated. Similarly if the input is video + /// only, then only video insights are generated. It is recommended + /// that you not use AudioInsightsOnly if you expect some of your + /// inputs to be video only; or use VideoInsightsOnly if you expect + /// some of your inputs to be audio only. Your Jobs in such conditions + /// would error out. Possible values include: 'AudioInsightsOnly', /// 'VideoInsightsOnly', 'AllInsights' /// [JsonProperty(PropertyName = "insightsToExtract")] diff --git a/src/SDKs/Media/Management.Media/Generated/SdkInfo_AzureMediaServices.cs b/src/SDKs/Media/Management.Media/Generated/SdkInfo_AzureMediaServices.cs index 0219b0428766..2b049988b457 100644 --- a/src/SDKs/Media/Management.Media/Generated/SdkInfo_AzureMediaServices.cs +++ b/src/SDKs/Media/Management.Media/Generated/SdkInfo_AzureMediaServices.cs @@ -36,16 +36,5 @@ public static IEnumerable> ApiInfo_AzureMediaServi }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/mediaservices/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --opt-in-extensible-enums --csharp-sdks-folder=E:\\GitHub\\BrianBlum\\azure-sdk-for-net\\src\\SDKs"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "e54dca04fcf7a9918b1dcd154c135e8a511a1615"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -