Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ private void Initialize()
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<Layer>("@odata.type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<JobInput>("@odata.type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<JobInput>("@odata.type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<ClipTime>("@odata.type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<ClipTime>("@odata.type"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<JobOutput>("@odata.type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<JobOutput>("@odata.type"));
CustomInitialize();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Media.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// 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.
/// </summary>
[Newtonsoft.Json.JsonObject("#Microsoft.Media.AbsoluteClipTime")]
public partial class AbsoluteClipTime : ClipTime
{
/// <summary>
/// Initializes a new instance of the AbsoluteClipTime class.
/// </summary>
public AbsoluteClipTime()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the AbsoluteClipTime class.
/// </summary>
/// <param name="time">The time position on the timeline of the input
/// media. It is usually speicified as an ISO8601 period. e.g PT30S for
/// 30 seconds.</param>
public AbsoluteClipTime(System.TimeSpan time)
{
Time = time;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "time")]
public System.TimeSpan Time { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}
36 changes: 36 additions & 0 deletions src/SDKs/Media/Management.Media/Generated/Models/ClipTime.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Media.Models
{
using System.Linq;

/// <summary>
/// Base class for specifying a clip time. Use sub classes of this class to
/// specify the time position in the media.
/// </summary>
public partial class ClipTime
{
/// <summary>
/// Initializes a new instance of the ClipTime class.
/// </summary>
public ClipTime()
{
CustomInit();
}


/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ public JobInputAsset()
/// <param name="assetName">The name of the input Asset.</param>
/// <param name="files">List of files. Required for JobInputHttp.
/// Maximum of 4000 characters each.</param>
/// <param name="start">Defines a point on the timeline of the input
/// media at which processing will start. Defaults to the beginning of
/// the input media.</param>
/// <param name="end">Defines a point on the timeline of the input
/// media at which processing will end. Defaults to the end of the
/// input media.</param>
/// <param name="label">A label that is assigned to a JobInputClip,
/// that is used to satisfy a reference used in the Transform. For
/// example, a Transform can be authored so as to take an image file
/// with the label 'xyz' and apply it as an overlay onto the input
/// video before it is encoded. When submitting a Job, exactly one of
/// the JobInputs should be the image file, and it should have the
/// label 'xyz'.</param>
public JobInputAsset(string assetName, IList<string> files = default(IList<string>), string label = default(string))
: base(files, label)
public JobInputAsset(string assetName, IList<string> files = default(IList<string>), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string))
: base(files, start, end, label)
{
AssetName = assetName;
CustomInit();
Expand Down
25 changes: 24 additions & 1 deletion src/SDKs/Media/Management.Media/Generated/Models/JobInputClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,24 @@ public JobInputClip()
/// </summary>
/// <param name="files">List of files. Required for JobInputHttp.
/// Maximum of 4000 characters each.</param>
/// <param name="start">Defines a point on the timeline of the input
/// media at which processing will start. Defaults to the beginning of
/// the input media.</param>
/// <param name="end">Defines a point on the timeline of the input
/// media at which processing will end. Defaults to the end of the
/// input media.</param>
/// <param name="label">A label that is assigned to a JobInputClip,
/// that is used to satisfy a reference used in the Transform. For
/// example, a Transform can be authored so as to take an image file
/// with the label 'xyz' and apply it as an overlay onto the input
/// video before it is encoded. When submitting a Job, exactly one of
/// the JobInputs should be the image file, and it should have the
/// label 'xyz'.</param>
public JobInputClip(IList<string> files = default(IList<string>), string label = default(string))
public JobInputClip(IList<string> files = default(IList<string>), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string))
{
Files = files;
Start = start;
End = end;
Label = label;
CustomInit();
}
Expand All @@ -60,6 +68,21 @@ public JobInputClip()
[JsonProperty(PropertyName = "files")]
public IList<string> Files { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "start")]
public ClipTime Start { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "end")]
public ClipTime End { get; set; }

/// <summary>
/// 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
Expand Down
10 changes: 8 additions & 2 deletions src/SDKs/Media/Management.Media/Generated/Models/JobInputHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public JobInputHttp()
/// </summary>
/// <param name="files">List of files. Required for JobInputHttp.
/// Maximum of 4000 characters each.</param>
/// <param name="start">Defines a point on the timeline of the input
/// media at which processing will start. Defaults to the beginning of
/// the input media.</param>
/// <param name="end">Defines a point on the timeline of the input
/// media at which processing will end. Defaults to the end of the
/// input media.</param>
/// <param name="label">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
Expand All @@ -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.</param>
public JobInputHttp(IList<string> files = default(IList<string>), string label = default(string), string baseUri = default(string))
: base(files, label)
public JobInputHttp(IList<string> files = default(IList<string>), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string), string baseUri = default(string))
: base(files, start, end, label)
{
BaseUri = baseUri;
CustomInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'."</param>
/// <param name="insightsToExtract">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'</param>
/// <param name="insightsToExtract">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'</param>
public VideoAnalyzerPreset(string audioLanguage = default(string), InsightsType? insightsToExtract = default(InsightsType?))
: base(audioLanguage)
{
Expand All @@ -67,10 +74,16 @@ public VideoAnalyzerPreset()
partial void CustomInit();

/// <summary>
/// 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'
/// </summary>
[JsonProperty(PropertyName = "insightsToExtract")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,5 @@ public static IEnumerable<Tuple<string, string, string>> 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
}
}