diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs index 68ea56fef6d6..1bb49efee3b3 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs @@ -453,6 +453,10 @@ 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")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs index 8357d0cdfdba..614ebbfd2312 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs @@ -34,22 +34,25 @@ public AccountFilter() /// /// Initializes a new instance of the AccountFilter class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The presentation time /// range. /// The first quality. /// The tracks selection conditions. - public AccountFilter(string id = default(string), string name = default(string), string type = default(string), PresentationTimeRange presentationTimeRange = default(PresentationTimeRange), FirstQuality firstQuality = default(FirstQuality), IList tracks = default(IList)) + /// The system metadata relating to this + /// resource. + public AccountFilter(string id = default(string), string name = default(string), string type = default(string), PresentationTimeRange presentationTimeRange = default(PresentationTimeRange), FirstQuality firstQuality = default(FirstQuality), IList tracks = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { PresentationTimeRange = presentationTimeRange; FirstQuality = firstQuality; Tracks = tracks; + SystemData = systemData; CustomInit(); } @@ -76,6 +79,12 @@ public AccountFilter() [JsonProperty(PropertyName = "properties.tracks")] public IList Tracks { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs index 5b7820cc3c19..02b6c6e0e8cd 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs @@ -32,12 +32,12 @@ public Asset() /// /// Initializes a new instance of the Asset class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The Asset ID. /// The creation date of the Asset. /// The last modified date of the @@ -51,7 +51,9 @@ public Asset() /// The Asset encryption format. /// One of None or MediaStorageEncryption. Possible values include: /// 'None', 'MediaStorageClientEncryption' - public Asset(string id = default(string), string name = default(string), string type = default(string), System.Guid assetId = default(System.Guid), System.DateTime created = default(System.DateTime), System.DateTime lastModified = default(System.DateTime), string alternateId = default(string), string description = default(string), string container = default(string), string storageAccountName = default(string), AssetStorageEncryptionFormat storageEncryptionFormat = default(AssetStorageEncryptionFormat)) + /// The system metadata relating to this + /// resource. + public Asset(string id = default(string), string name = default(string), string type = default(string), System.Guid assetId = default(System.Guid), System.DateTime created = default(System.DateTime), System.DateTime lastModified = default(System.DateTime), string alternateId = default(string), string description = default(string), string container = default(string), string storageAccountName = default(string), AssetStorageEncryptionFormat storageEncryptionFormat = default(AssetStorageEncryptionFormat), SystemData systemData = default(SystemData)) : base(id, name, type) { AssetId = assetId; @@ -62,6 +64,7 @@ public Asset() Container = container; StorageAccountName = storageAccountName; StorageEncryptionFormat = storageEncryptionFormat; + SystemData = systemData; CustomInit(); } @@ -120,5 +123,11 @@ public Asset() [JsonProperty(PropertyName = "properties.storageEncryptionFormat")] public AssetStorageEncryptionFormat StorageEncryptionFormat { get; private set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs index af7a3aed280f..23e9014bff00 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs @@ -34,22 +34,25 @@ public AssetFilter() /// /// Initializes a new instance of the AssetFilter class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The presentation time /// range. /// The first quality. /// The tracks selection conditions. - public AssetFilter(string id = default(string), string name = default(string), string type = default(string), PresentationTimeRange presentationTimeRange = default(PresentationTimeRange), FirstQuality firstQuality = default(FirstQuality), IList tracks = default(IList)) + /// The system metadata relating to this + /// resource. + public AssetFilter(string id = default(string), string name = default(string), string type = default(string), PresentationTimeRange presentationTimeRange = default(PresentationTimeRange), FirstQuality firstQuality = default(FirstQuality), IList tracks = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { PresentationTimeRange = presentationTimeRange; FirstQuality = firstQuality; Tracks = tracks; + SystemData = systemData; CustomInit(); } @@ -76,6 +79,12 @@ public AssetFilter() [JsonProperty(PropertyName = "properties.tracks")] public IList Tracks { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilter.cs new file mode 100644 index 000000000000..c793414b1226 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilter.cs @@ -0,0 +1,124 @@ +// +// 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; + + /// + /// Defines values for AttributeFilter. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(AttributeFilterConverter))] + public struct AttributeFilter : System.IEquatable + { + private AttributeFilter(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// All tracks will be included. + /// + public static readonly AttributeFilter All = "All"; + + /// + /// The first track will be included when the attribute is sorted in + /// descending order. Generally used to select the largest bitrate. + /// + public static readonly AttributeFilter Top = "Top"; + + /// + /// The first track will be included when the attribute is sorted in + /// ascending order. Generally used to select the smallest bitrate. + /// + public static readonly AttributeFilter Bottom = "Bottom"; + + /// + /// Any tracks that have an attribute equal to the value given will be + /// included. + /// + public static readonly AttributeFilter ValueEquals = "ValueEquals"; + + + /// + /// Underlying value of enum AttributeFilter + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for AttributeFilter + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type AttributeFilter + /// + public bool Equals(AttributeFilter e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to AttributeFilter + /// + public static implicit operator AttributeFilter(string value) + { + return new AttributeFilter(value); + } + + /// + /// Implicit operator to convert AttributeFilter to string + /// + public static implicit operator string(AttributeFilter e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum AttributeFilter + /// + public static bool operator == (AttributeFilter e1, AttributeFilter e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum AttributeFilter + /// + public static bool operator != (AttributeFilter e1, AttributeFilter e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for AttributeFilter + /// + public override bool Equals(object obj) + { + return obj is AttributeFilter && Equals((AttributeFilter)obj); + } + + /// + /// Returns for hashCode AttributeFilter + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilterConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilterConverter.cs new file mode 100644 index 000000000000..926e1af408da --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AttributeFilterConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for AttributeFilter. + /// + public sealed class AttributeFilterConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to AttributeFilter by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(AttributeFilter).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to AttributeFilter. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (AttributeFilter)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for AttributeFilter for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs index 8a5e018f2a4c..3af6fb3502d8 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs @@ -32,10 +32,10 @@ public AudioOverlay() /// /// The label of the job input which is to be /// used as an overlay. The Input must specify exactly one file. You - /// can specify an image file in JPG or PNG formats, or an audio file - /// (such as a WAV, MP3, WMA or M4A file), or a video file. See - /// https://aka.ms/mesformats for the complete list of supported audio - /// and video file formats. + /// can specify an image file in JPG, PNG, GIF or BMP format, or an + /// audio file (such as a WAV, MP3, WMA or M4A file), or a video file. + /// See https://aka.ms/mesformats for the complete list of supported + /// audio and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 /// format. For example, PT05S to start the overlay at 5 seconds into diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioTrackDescriptor.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioTrackDescriptor.cs new file mode 100644 index 000000000000..96232760b62b --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioTrackDescriptor.cs @@ -0,0 +1,60 @@ +// +// 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; + + /// + /// A TrackSelection to select audio tracks. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.AudioTrackDescriptor")] + public partial class AudioTrackDescriptor : TrackDescriptor + { + /// + /// Initializes a new instance of the AudioTrackDescriptor class. + /// + public AudioTrackDescriptor() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AudioTrackDescriptor class. + /// + /// Optional designation for single + /// channel audio tracks. Can be used to combine the tracks into + /// stereo or multi-channel audio tracks. Possible values include: + /// 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', + /// 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + public AudioTrackDescriptor(ChannelMapping? channelMapping = default(ChannelMapping?)) + { + ChannelMapping = channelMapping; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets optional designation for single channel audio tracks. + /// Can be used to combine the tracks into stereo or multi-channel + /// audio tracks. Possible values include: 'FrontLeft', 'FrontRight', + /// 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', + /// 'StereoLeft', 'StereoRight' + /// + [JsonProperty(PropertyName = "channelMapping")] + public ChannelMapping? ChannelMapping { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs index 5c2b5280b0cb..67296c4aed12 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs @@ -14,9 +14,12 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The resource model definition for a Azure Resource Manager resource - /// with an etag. + /// Entity Resource /// + /// + /// The resource model definition for an Azure Resource Manager resource + /// with an etag. + /// public partial class AzureEntityResource : Resource { /// @@ -30,12 +33,12 @@ public AzureEntityResource() /// /// Initializes a new instance of the AzureEntityResource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource Etag. public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) : base(id, name, type) diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurType.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurType.cs new file mode 100644 index 000000000000..86e4301ea246 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurType.cs @@ -0,0 +1,126 @@ +// +// 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; + + /// + /// Defines values for BlurType. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(BlurTypeConverter))] + public struct BlurType : System.IEquatable + { + private BlurType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// Box: debug filter, bounding box only + /// + public static readonly BlurType Box = "Box"; + + /// + /// Low: box-car blur filter + /// + public static readonly BlurType Low = "Low"; + + /// + /// Med: Gaussian blur filter + /// + public static readonly BlurType Med = "Med"; + + /// + /// High: Confuse blur filter + /// + public static readonly BlurType High = "High"; + + /// + /// Black: Black out filter + /// + public static readonly BlurType Black = "Black"; + + + /// + /// Underlying value of enum BlurType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for BlurType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type BlurType + /// + public bool Equals(BlurType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to BlurType + /// + public static implicit operator BlurType(string value) + { + return new BlurType(value); + } + + /// + /// Implicit operator to convert BlurType to string + /// + public static implicit operator string(BlurType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum BlurType + /// + public static bool operator == (BlurType e1, BlurType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum BlurType + /// + public static bool operator != (BlurType e1, BlurType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for BlurType + /// + public override bool Equals(object obj) + { + return obj is BlurType && Equals((BlurType)obj); + } + + /// + /// Returns for hashCode BlurType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurTypeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurTypeConverter.cs new file mode 100644 index 000000000000..c16c916bc60e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BlurTypeConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for BlurType. + /// + public sealed class BlurTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to BlurType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(BlurType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to BlurType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (BlurType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for BlurType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs index a4d87f4fe3be..3c1d1a857de7 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs @@ -39,7 +39,10 @@ public BuiltInStandardEncoderPreset() /// 'AdaptiveStreaming', 'AACGoodQualityAudio', /// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', /// 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', - /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD', + /// 'H265ContentAwareEncoding', 'H265AdaptiveStreaming', + /// 'H265SingleBitrate720p', 'H265SingleBitrate1080p', + /// 'H265SingleBitrate4K' public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName) { PresetName = presetName; @@ -58,7 +61,10 @@ public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName) /// 'AdaptiveStreaming', 'AACGoodQualityAudio', /// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', /// 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', - /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' + /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD', + /// 'H265ContentAwareEncoding', 'H265AdaptiveStreaming', + /// 'H265SingleBitrate720p', 'H265SingleBitrate1080p', + /// 'H265SingleBitrate4K' /// [JsonProperty(PropertyName = "presetName")] public EncoderNamedPreset PresetName { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMapping.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMapping.cs new file mode 100644 index 000000000000..ea185c0a1127 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMapping.cs @@ -0,0 +1,144 @@ +// +// 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; + + /// + /// Defines values for ChannelMapping. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ChannelMappingConverter))] + public struct ChannelMapping : System.IEquatable + { + private ChannelMapping(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// The Front Left Channel. + /// + public static readonly ChannelMapping FrontLeft = "FrontLeft"; + + /// + /// The Front Right Channel. + /// + public static readonly ChannelMapping FrontRight = "FrontRight"; + + /// + /// The Center Channel. + /// + public static readonly ChannelMapping Center = "Center"; + + /// + /// Low Frequency Effects Channel. Sometimes referred to as the + /// Subwoofer. + /// + public static readonly ChannelMapping LowFrequencyEffects = "LowFrequencyEffects"; + + /// + /// The Back Left Channel. Sometimes referred to as the Left Surround + /// Channel. + /// + public static readonly ChannelMapping BackLeft = "BackLeft"; + + /// + /// The Back Right Channel. Sometimes referred to as the Right + /// Surround Channel. + /// + public static readonly ChannelMapping BackRight = "BackRight"; + + /// + /// The Left Stereo channel. Sometimes referred to as Down Mix Left. + /// + public static readonly ChannelMapping StereoLeft = "StereoLeft"; + + /// + /// The Right Stereo channel. Sometimes referred to as Down Mix Right. + /// + public static readonly ChannelMapping StereoRight = "StereoRight"; + + + /// + /// Underlying value of enum ChannelMapping + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ChannelMapping + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ChannelMapping + /// + public bool Equals(ChannelMapping e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ChannelMapping + /// + public static implicit operator ChannelMapping(string value) + { + return new ChannelMapping(value); + } + + /// + /// Implicit operator to convert ChannelMapping to string + /// + public static implicit operator string(ChannelMapping e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ChannelMapping + /// + public static bool operator == (ChannelMapping e1, ChannelMapping e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ChannelMapping + /// + public static bool operator != (ChannelMapping e1, ChannelMapping e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ChannelMapping + /// + public override bool Equals(object obj) + { + return obj is ChannelMapping && Equals((ChannelMapping)obj); + } + + /// + /// Returns for hashCode ChannelMapping + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMappingConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMappingConverter.cs new file mode 100644 index 000000000000..353ac9e8b02e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ChannelMappingConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for ChannelMapping. + /// + public sealed class ChannelMappingConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ChannelMapping by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ChannelMapping).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ChannelMapping. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ChannelMapping)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ChannelMapping for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs index 8fb5b07613d0..93b7354a3113 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs @@ -35,18 +35,20 @@ public ContentKeyPolicy() /// Initializes a new instance of the ContentKeyPolicy class. /// /// The Key Policy options. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The legacy Policy ID. /// The creation date of the Policy /// The last modified date of the /// Policy /// A description for the Policy. - public ContentKeyPolicy(IList options, string id = default(string), string name = default(string), string type = default(string), System.Guid policyId = default(System.Guid), System.DateTime created = default(System.DateTime), System.DateTime lastModified = default(System.DateTime), string description = default(string)) + /// The system metadata relating to this + /// resource. + public ContentKeyPolicy(IList options, string id = default(string), string name = default(string), string type = default(string), System.Guid policyId = default(System.Guid), System.DateTime created = default(System.DateTime), System.DateTime lastModified = default(System.DateTime), string description = default(string), SystemData systemData = default(SystemData)) : base(id, name, type) { PolicyId = policyId; @@ -54,6 +56,7 @@ public ContentKeyPolicy() LastModified = lastModified; Description = description; Options = options; + SystemData = systemData; CustomInit(); } @@ -92,6 +95,12 @@ public ContentKeyPolicy() [JsonProperty(PropertyName = "properties.options")] public IList Options { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByType.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByType.cs new file mode 100644 index 000000000000..435a97b012f5 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,109 @@ +// +// 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; + + /// + /// Defines values for CreatedByType. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(CreatedByTypeConverter))] + public struct CreatedByType : System.IEquatable + { + private CreatedByType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly CreatedByType User = "User"; + + public static readonly CreatedByType Application = "Application"; + + public static readonly CreatedByType ManagedIdentity = "ManagedIdentity"; + + public static readonly CreatedByType Key = "Key"; + + + /// + /// Underlying value of enum CreatedByType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for CreatedByType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type CreatedByType + /// + public bool Equals(CreatedByType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to CreatedByType + /// + public static implicit operator CreatedByType(string value) + { + return new CreatedByType(value); + } + + /// + /// Implicit operator to convert CreatedByType to string + /// + public static implicit operator string(CreatedByType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum CreatedByType + /// + public static bool operator == (CreatedByType e1, CreatedByType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum CreatedByType + /// + public static bool operator != (CreatedByType e1, CreatedByType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for CreatedByType + /// + public override bool Equals(object obj) + { + return obj is CreatedByType && Equals((CreatedByType)obj); + } + + /// + /// Returns for hashCode CreatedByType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByTypeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByTypeConverter.cs new file mode 100644 index 000000000000..7cb59d687aaf --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/CreatedByTypeConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for CreatedByType. + /// + public sealed class CreatedByTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to CreatedByType by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(CreatedByType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to CreatedByType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (CreatedByType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for CreatedByType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs index 36a0dd85328a..ebef1e3ab795 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs @@ -115,6 +115,49 @@ private EncoderNamedPreset(string underlyingValue) /// public static readonly EncoderNamedPreset H264MultipleBitrateSD = "H264MultipleBitrateSD"; + /// + /// Produces a set of GOP-aligned MP4s by using content-aware encoding. + /// Given any input content, the service performs an initial + /// lightweight analysis of the input content, and uses the results to + /// determine the optimal number of layers, appropriate bitrate and + /// resolution settings for delivery by adaptive streaming. This preset + /// is particularly effective for low and medium complexity videos, + /// where the output files will be at lower bitrates but at a quality + /// that still delivers a good experience to viewers. The output will + /// contain MP4 files with video and audio interleaved. + /// + public static readonly EncoderNamedPreset H265ContentAwareEncoding = "H265ContentAwareEncoding"; + + /// + /// Produces a set of GOP aligned MP4 files with H.265 video and stereo + /// AAC audio. Auto-generates a bitrate ladder based on the input + /// resolution, bitrate and frame rate. The auto-generated preset will + /// never exceed the input resolution. For example, if the input is + /// 720p, output will remain 720p at best. + /// + public static readonly EncoderNamedPreset H265AdaptiveStreaming = "H265AdaptiveStreaming"; + + /// + /// Produces an MP4 file where the video is encoded with H.265 codec at + /// 1800 kbps and a picture height of 720 pixels, and the stereo audio + /// is encoded with AAC-LC codec at 128 kbps. + /// + public static readonly EncoderNamedPreset H265SingleBitrate720p = "H265SingleBitrate720p"; + + /// + /// Produces an MP4 file where the video is encoded with H.265 codec at + /// 3500 kbps and a picture height of 1080 pixels, and the stereo audio + /// is encoded with AAC-LC codec at 128 kbps. + /// + public static readonly EncoderNamedPreset H265SingleBitrate1080p = "H265SingleBitrate1080p"; + + /// + /// Produces an MP4 file where the video is encoded with H.265 codec at + /// 9500 kbps and a picture height of 2160 pixels, and the stereo audio + /// is encoded with AAC-LC codec at 128 kbps. + /// + public static readonly EncoderNamedPreset H265SingleBitrate4K = "H265SingleBitrate4K"; + /// /// Underlying value of enum EncoderNamedPreset diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceDetectorPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceDetectorPreset.cs index 28bd8dc3e9d9..4e073b0ea861 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceDetectorPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceDetectorPreset.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.Media.Models /// /// Describes all the settings to be used when analyzing a video in order - /// to detect all the faces present. + /// to detect (and optionally redact) all the faces present. /// [Newtonsoft.Json.JsonObject("#Microsoft.Media.FaceDetectorPreset")] public partial class FaceDetectorPreset : Preset @@ -47,11 +47,25 @@ public FaceDetectorPreset() /// for details). However, faces that end up being too small in the /// resized video may not be detected. Possible values include: /// 'SourceResolution', 'StandardDefinition' + /// This mode provides the ability to choose between + /// the following settings: 1) Analyze - For detection only.This mode + /// generates a metadata JSON file marking appearances of faces + /// throughout the video.Where possible, appearances of the same person + /// are assigned the same ID. 2) Combined - Additionally redacts(blurs) + /// detected faces. 3) Redact - This enables a 2-pass process, allowing + /// for selective redaction of a subset of detected faces.It takes in + /// the metadata file from a prior analyze pass, along with the source + /// video, and a user-selected subset of IDs that require redaction. + /// Possible values include: 'Analyze', 'Redact', 'Combined' + /// Blur type. Possible values include: 'Box', + /// 'Low', 'Med', 'High', 'Black' /// Dictionary containing key value /// pairs for parameters not exposed in the preset itself - public FaceDetectorPreset(AnalysisResolution? resolution = default(AnalysisResolution?), IDictionary experimentalOptions = default(IDictionary)) + public FaceDetectorPreset(AnalysisResolution? resolution = default(AnalysisResolution?), FaceRedactorMode? mode = default(FaceRedactorMode?), BlurType? blurType = default(BlurType?), IDictionary experimentalOptions = default(IDictionary)) { Resolution = resolution; + Mode = mode; + BlurType = blurType; ExperimentalOptions = experimentalOptions; CustomInit(); } @@ -80,6 +94,28 @@ public FaceDetectorPreset() [JsonProperty(PropertyName = "resolution")] public AnalysisResolution? Resolution { get; set; } + /// + /// Gets or sets this mode provides the ability to choose between the + /// following settings: 1) Analyze - For detection only.This mode + /// generates a metadata JSON file marking appearances of faces + /// throughout the video.Where possible, appearances of the same person + /// are assigned the same ID. 2) Combined - Additionally redacts(blurs) + /// detected faces. 3) Redact - This enables a 2-pass process, allowing + /// for selective redaction of a subset of detected faces.It takes in + /// the metadata file from a prior analyze pass, along with the source + /// video, and a user-selected subset of IDs that require redaction. + /// Possible values include: 'Analyze', 'Redact', 'Combined' + /// + [JsonProperty(PropertyName = "mode")] + public FaceRedactorMode? Mode { get; set; } + + /// + /// Gets or sets blur type. Possible values include: 'Box', 'Low', + /// 'Med', 'High', 'Black' + /// + [JsonProperty(PropertyName = "blurType")] + public BlurType? BlurType { get; set; } + /// /// Gets or sets dictionary containing key value pairs for parameters /// not exposed in the preset itself diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorMode.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorMode.cs new file mode 100644 index 000000000000..9b34ff4ba16d --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorMode.cs @@ -0,0 +1,120 @@ +// +// 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; + + /// + /// Defines values for FaceRedactorMode. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(FaceRedactorModeConverter))] + public struct FaceRedactorMode : System.IEquatable + { + private FaceRedactorMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// Analyze mode detects faces and outputs a metadata file with the + /// results. Allows editing of the metadata file before faces are + /// blurred with Redact mode. + /// + public static readonly FaceRedactorMode Analyze = "Analyze"; + + /// + /// Redact mode consumes the metadata file from Analyze mode and + /// redacts the faces found. + /// + public static readonly FaceRedactorMode Redact = "Redact"; + + /// + /// Combined mode does the Analyze and Redact steps in one pass when + /// editing the analyzed faces is not desired. + /// + public static readonly FaceRedactorMode Combined = "Combined"; + + + /// + /// Underlying value of enum FaceRedactorMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for FaceRedactorMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type FaceRedactorMode + /// + public bool Equals(FaceRedactorMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to FaceRedactorMode + /// + public static implicit operator FaceRedactorMode(string value) + { + return new FaceRedactorMode(value); + } + + /// + /// Implicit operator to convert FaceRedactorMode to string + /// + public static implicit operator string(FaceRedactorMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum FaceRedactorMode + /// + public static bool operator == (FaceRedactorMode e1, FaceRedactorMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum FaceRedactorMode + /// + public static bool operator != (FaceRedactorMode e1, FaceRedactorMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for FaceRedactorMode + /// + public override bool Equals(object obj) + { + return obj is FaceRedactorMode && Equals((FaceRedactorMode)obj); + } + + /// + /// Returns for hashCode FaceRedactorMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorModeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorModeConverter.cs new file mode 100644 index 000000000000..a29dc6e30f30 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FaceRedactorModeConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for FaceRedactorMode. + /// + public sealed class FaceRedactorModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to FaceRedactorMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(FaceRedactorMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to FaceRedactorMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (FaceRedactorMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for FaceRedactorMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs index 16b4ad0ee6fe..9c8a3a83366b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs @@ -42,8 +42,9 @@ public Format() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. public Format(string filenamePattern) { FilenamePattern = filenamePattern; @@ -68,8 +69,9 @@ public Format(string filenamePattern) /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. /// [JsonProperty(PropertyName = "filenamePattern")] public string FilenamePattern { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromAllInputFile.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromAllInputFile.cs new file mode 100644 index 000000000000..e435aa3dd052 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromAllInputFile.cs @@ -0,0 +1,52 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An InputDefinition that looks across all of the files provided to + /// select tracks specified by the IncludedTracks property. Generally used + /// with the AudioTrackByAttribute and VideoTrackByAttribute to allow + /// selection of a single track across a set of input files. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.FromAllInputFile")] + public partial class FromAllInputFile : InputDefinition + { + /// + /// Initializes a new instance of the FromAllInputFile class. + /// + public FromAllInputFile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FromAllInputFile class. + /// + /// The list of TrackDescriptors which + /// define the metadata and selection of tracks in the input. + public FromAllInputFile(IList includedTracks = default(IList)) + : base(includedTracks) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromEachInputFile.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromEachInputFile.cs new file mode 100644 index 000000000000..e2d24c81f84e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/FromEachInputFile.cs @@ -0,0 +1,52 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An InputDefinition that looks at each input file provided to select + /// tracks specified by the IncludedTracks property. Generally used with + /// the AudioTrackByAttribute and VideoTrackByAttribute to select tracks + /// from each file given. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.FromEachInputFile")] + public partial class FromEachInputFile : InputDefinition + { + /// + /// Initializes a new instance of the FromEachInputFile class. + /// + public FromEachInputFile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FromEachInputFile class. + /// + /// The list of TrackDescriptors which + /// define the metadata and selection of tracks in the input. + public FromEachInputFile(IList includedTracks = default(IList)) + : base(includedTracks) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Complexity.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Complexity.cs new file mode 100644 index 000000000000..0f6892613485 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Complexity.cs @@ -0,0 +1,119 @@ +// +// 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; + + /// + /// Defines values for H265Complexity. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(H265ComplexityConverter))] + public struct H265Complexity : System.IEquatable + { + private H265Complexity(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// Tells the encoder to use settings that are optimized for faster + /// encoding. Quality is sacrificed to decrease encoding time. + /// + public static readonly H265Complexity Speed = "Speed"; + + /// + /// Tells the encoder to use settings that achieve a balance between + /// speed and quality. + /// + public static readonly H265Complexity Balanced = "Balanced"; + + /// + /// Tells the encoder to use settings that are optimized to produce + /// higher quality output at the expense of slower overall encode time. + /// + public static readonly H265Complexity Quality = "Quality"; + + + /// + /// Underlying value of enum H265Complexity + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for H265Complexity + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type H265Complexity + /// + public bool Equals(H265Complexity e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to H265Complexity + /// + public static implicit operator H265Complexity(string value) + { + return new H265Complexity(value); + } + + /// + /// Implicit operator to convert H265Complexity to string + /// + public static implicit operator string(H265Complexity e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum H265Complexity + /// + public static bool operator == (H265Complexity e1, H265Complexity e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum H265Complexity + /// + public static bool operator != (H265Complexity e1, H265Complexity e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for H265Complexity + /// + public override bool Equals(object obj) + { + return obj is H265Complexity && Equals((H265Complexity)obj); + } + + /// + /// Returns for hashCode H265Complexity + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265ComplexityConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265ComplexityConverter.cs new file mode 100644 index 000000000000..ea8fef3685a6 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265ComplexityConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for H265Complexity. + /// + public sealed class H265ComplexityConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to H265Complexity by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(H265Complexity).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to H265Complexity. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (H265Complexity)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for H265Complexity for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Layer.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Layer.cs new file mode 100644 index 000000000000..4e7d15544a60 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Layer.cs @@ -0,0 +1,141 @@ +// +// 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; + + /// + /// Describes the settings to be used when encoding the input video into a + /// desired output bitrate layer with the H.265 video codec. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.H265Layer")] + public partial class H265Layer : H265VideoLayer + { + /// + /// Initializes a new instance of the H265Layer class. + /// + public H265Layer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the H265Layer class. + /// + /// The average bitrate in bits per second at + /// which to encode the input video when generating this layer. For + /// example: a target bitrate of 3000Kbps or 3Mbps means this value + /// should be 3000000 This is a required field. + /// The width of the output video for this layer. + /// The value can be absolute (in pixels) or relative (in percentage). + /// For example 50% means the output video has half as many pixels in + /// width as the input. + /// The 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. + /// The alphanumeric label for this layer, which + /// can be used in multiplexing different video and audio layers, or in + /// naming the output file. + /// The maximum bitrate (in bits per second), + /// at which the VBV buffer should be assumed to refill. If not + /// specified, defaults to the same value as bitrate. + /// The number of B-frames to be used when + /// encoding this layer. If not specified, the encoder chooses an + /// appropriate number based on the video profile and level. + /// The frame rate (in frames per second) at + /// which to encode this layer. The value can be in the form of M/N + /// where M and N are integers (For example, 30000/1001), or in the + /// form of a number (For example, 30, or 29.97). The encoder enforces + /// constraints on allowed frame rates based on the profile and level. + /// If it is not specified, the encoder will use the same frame rate as + /// the input video. + /// The number of slices to be used when encoding + /// this layer. If not specified, default is zero, which means that + /// encoder will use a single slice for each frame. + /// Specifies whether or not adaptive + /// B-frames are to be used when encoding this layer. If not specified, + /// the encoder will turn it on whenever the video profile permits its + /// use. + /// We currently support Main. Default is Auto. + /// Possible values include: 'Auto', 'Main' + /// We currently support Level up to 6.2. The value + /// can be Auto, or a number that matches the H.265 profile. If not + /// specified, the default is Auto, which lets the encoder choose the + /// Level that is appropriate for this layer. + /// The VBV buffer window length. The value + /// should be in ISO 8601 format. The value should be in the range + /// [0.1-100] seconds. The default is 5 seconds (for example, + /// PT5S). + /// The number of reference frames to be + /// used when encoding this layer. If not specified, the encoder + /// determines an appropriate number based on the encoder complexity + /// setting. + public H265Layer(int bitrate, string width = default(string), string height = default(string), string label = default(string), int? maxBitrate = default(int?), int? bFrames = default(int?), string frameRate = default(string), int? slices = default(int?), bool? adaptiveBFrame = default(bool?), H265VideoProfile? profile = default(H265VideoProfile?), string level = default(string), System.TimeSpan? bufferWindow = default(System.TimeSpan?), int? referenceFrames = default(int?)) + : base(bitrate, width, height, label, maxBitrate, bFrames, frameRate, slices, adaptiveBFrame) + { + Profile = profile; + Level = level; + BufferWindow = bufferWindow; + ReferenceFrames = referenceFrames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets we currently support Main. Default is Auto. Possible + /// values include: 'Auto', 'Main' + /// + [JsonProperty(PropertyName = "profile")] + public H265VideoProfile? Profile { get; set; } + + /// + /// Gets or sets we currently support Level up to 6.2. The value can be + /// Auto, or a number that matches the H.265 profile. If not specified, + /// the default is Auto, which lets the encoder choose the Level that + /// is appropriate for this layer. + /// + [JsonProperty(PropertyName = "level")] + public string Level { get; set; } + + /// + /// Gets or sets the VBV buffer window length. The value should be in + /// ISO 8601 format. The value should be in the range [0.1-100] + /// seconds. The default is 5 seconds (for example, PT5S). + /// + [JsonProperty(PropertyName = "bufferWindow")] + public System.TimeSpan? BufferWindow { get; set; } + + /// + /// Gets or sets the number of reference frames to be used when + /// encoding this layer. If not specified, the encoder determines an + /// appropriate number based on the encoder complexity setting. + /// + [JsonProperty(PropertyName = "referenceFrames")] + public int? ReferenceFrames { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Video.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Video.cs new file mode 100644 index 000000000000..9e4c1fa023b8 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265Video.cs @@ -0,0 +1,103 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes all the properties for encoding a video with the H.265 codec. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.H265Video")] + public partial class H265Video : Video + { + /// + /// Initializes a new instance of the H265Video class. + /// + public H265Video() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the H265Video class. + /// + /// An optional label for the codec. The label can + /// be used to control muxing behavior. + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. + /// The resizing mode - how the input video + /// will be resized to fit the desired output resolution(s). Default is + /// AutoSize. Possible values include: 'None', 'AutoSize', + /// 'AutoFit' + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' + /// Specifies whether or not the + /// encoder should insert key frames at scene changes. If not + /// specified, the default is false. This flag should be set to true + /// only when the encoder is being configured to produce a single + /// output video. + /// Tells the encoder how to choose its + /// encoding settings. Quality will provide for a higher compression + /// ratio but at a higher cost and longer compute time. Speed will + /// produce a relatively larger file but is faster and more economical. + /// The default value is Balanced. Possible values include: 'Speed', + /// 'Balanced', 'Quality' + /// The collection of output H.265 layers to be + /// produced by the encoder. + public H265Video(string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?), bool? sceneChangeDetection = default(bool?), H265Complexity? complexity = default(H265Complexity?), IList layers = default(IList)) + : base(label, keyFrameInterval, stretchMode, syncMode) + { + SceneChangeDetection = sceneChangeDetection; + Complexity = complexity; + Layers = layers; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies whether or not the encoder should insert key + /// frames at scene changes. If not specified, the default is false. + /// This flag should be set to true only when the encoder is being + /// configured to produce a single output video. + /// + [JsonProperty(PropertyName = "sceneChangeDetection")] + public bool? SceneChangeDetection { get; set; } + + /// + /// Gets or sets tells the encoder how to choose its encoding settings. + /// Quality will provide for a higher compression ratio but at a higher + /// cost and longer compute time. Speed will produce a relatively + /// larger file but is faster and more economical. The default value is + /// Balanced. Possible values include: 'Speed', 'Balanced', 'Quality' + /// + [JsonProperty(PropertyName = "complexity")] + public H265Complexity? Complexity { get; set; } + + /// + /// Gets or sets the collection of output H.265 layers to be produced + /// by the encoder. + /// + [JsonProperty(PropertyName = "layers")] + public IList Layers { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoLayer.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoLayer.cs new file mode 100644 index 000000000000..94c841abb045 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoLayer.cs @@ -0,0 +1,150 @@ +// +// 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; + + /// + /// Describes the settings to be used when encoding the input video into a + /// desired output bitrate layer. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.H265VideoLayer")] + public partial class H265VideoLayer : Layer + { + /// + /// Initializes a new instance of the H265VideoLayer class. + /// + public H265VideoLayer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the H265VideoLayer class. + /// + /// The average bitrate in bits per second at + /// which to encode the input video when generating this layer. For + /// example: a target bitrate of 3000Kbps or 3Mbps means this value + /// should be 3000000 This is a required field. + /// The width of the output video for this layer. + /// The value can be absolute (in pixels) or relative (in percentage). + /// For example 50% means the output video has half as many pixels in + /// width as the input. + /// The 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. + /// The alphanumeric label for this layer, which + /// can be used in multiplexing different video and audio layers, or in + /// naming the output file. + /// The maximum bitrate (in bits per second), + /// at which the VBV buffer should be assumed to refill. If not + /// specified, defaults to the same value as bitrate. + /// The number of B-frames to be used when + /// encoding this layer. If not specified, the encoder chooses an + /// appropriate number based on the video profile and level. + /// The frame rate (in frames per second) at + /// which to encode this layer. The value can be in the form of M/N + /// where M and N are integers (For example, 30000/1001), or in the + /// form of a number (For example, 30, or 29.97). The encoder enforces + /// constraints on allowed frame rates based on the profile and level. + /// If it is not specified, the encoder will use the same frame rate as + /// the input video. + /// The number of slices to be used when encoding + /// this layer. If not specified, default is zero, which means that + /// encoder will use a single slice for each frame. + /// Specifies whether or not adaptive + /// B-frames are to be used when encoding this layer. If not specified, + /// the encoder will turn it on whenever the video profile permits its + /// use. + public H265VideoLayer(int bitrate, string width = default(string), string height = default(string), string label = default(string), int? maxBitrate = default(int?), int? bFrames = default(int?), string frameRate = default(string), int? slices = default(int?), bool? adaptiveBFrame = default(bool?)) + : base(width, height, label) + { + Bitrate = bitrate; + MaxBitrate = maxBitrate; + BFrames = bFrames; + FrameRate = frameRate; + Slices = slices; + AdaptiveBFrame = adaptiveBFrame; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the average bitrate in bits per second at which to + /// encode the input video when generating this layer. For example: a + /// target bitrate of 3000Kbps or 3Mbps means this value should be + /// 3000000 This is a required field. + /// + [JsonProperty(PropertyName = "bitrate")] + public int Bitrate { get; set; } + + /// + /// Gets or sets the maximum bitrate (in bits per second), at which the + /// VBV buffer should be assumed to refill. If not specified, defaults + /// to the same value as bitrate. + /// + [JsonProperty(PropertyName = "maxBitrate")] + public int? MaxBitrate { get; set; } + + /// + /// Gets or sets the number of B-frames to be used when encoding this + /// layer. If not specified, the encoder chooses an appropriate number + /// based on the video profile and level. + /// + [JsonProperty(PropertyName = "bFrames")] + public int? BFrames { get; set; } + + /// + /// Gets or sets the frame rate (in frames per second) at which to + /// encode this layer. The value can be in the form of M/N where M and + /// N are integers (For example, 30000/1001), or in the form of a + /// number (For example, 30, or 29.97). The encoder enforces + /// constraints on allowed frame rates based on the profile and level. + /// If it is not specified, the encoder will use the same frame rate as + /// the input video. + /// + [JsonProperty(PropertyName = "frameRate")] + public string FrameRate { get; set; } + + /// + /// Gets or sets the number of slices to be used when encoding this + /// layer. If not specified, default is zero, which means that encoder + /// will use a single slice for each frame. + /// + [JsonProperty(PropertyName = "slices")] + public int? Slices { get; set; } + + /// + /// Gets or sets specifies whether or not adaptive B-frames are to be + /// used when encoding this layer. If not specified, the encoder will + /// turn it on whenever the video profile permits its use. + /// + [JsonProperty(PropertyName = "adaptiveBFrame")] + public bool? AdaptiveBFrame { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfile.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfile.cs new file mode 100644 index 000000000000..92e7173f66aa --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfile.cs @@ -0,0 +1,113 @@ +// +// 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; + + /// + /// Defines values for H265VideoProfile. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(H265VideoProfileConverter))] + public struct H265VideoProfile : System.IEquatable + { + private H265VideoProfile(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// Tells the encoder to automatically determine the appropriate H.265 + /// profile. + /// + public static readonly H265VideoProfile Auto = "Auto"; + + /// + /// Main profile + /// (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier) + /// + public static readonly H265VideoProfile Main = "Main"; + + + /// + /// Underlying value of enum H265VideoProfile + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for H265VideoProfile + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type H265VideoProfile + /// + public bool Equals(H265VideoProfile e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to H265VideoProfile + /// + public static implicit operator H265VideoProfile(string value) + { + return new H265VideoProfile(value); + } + + /// + /// Implicit operator to convert H265VideoProfile to string + /// + public static implicit operator string(H265VideoProfile e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum H265VideoProfile + /// + public static bool operator == (H265VideoProfile e1, H265VideoProfile e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum H265VideoProfile + /// + public static bool operator != (H265VideoProfile e1, H265VideoProfile e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for H265VideoProfile + /// + public override bool Equals(object obj) + { + return obj is H265VideoProfile && Equals((H265VideoProfile)obj); + } + + /// + /// Returns for hashCode H265VideoProfile + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfileConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfileConverter.cs new file mode 100644 index 000000000000..510dd8095cec --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H265VideoProfileConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for H265VideoProfile. + /// + public sealed class H265VideoProfileConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to H265VideoProfile by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(H265VideoProfile).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to H265VideoProfile. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (H265VideoProfile)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for H265VideoProfile for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs index ee4da91574e5..e3a037b002ec 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs @@ -42,8 +42,9 @@ public ImageFormat() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. public ImageFormat(string filenamePattern) : base(filenamePattern) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputDefinition.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputDefinition.cs new file mode 100644 index 000000000000..4946c61dc056 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputDefinition.cs @@ -0,0 +1,56 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Base class for defining an input. Use sub classes of this class to + /// specify tracks selections and related metadata. + /// + public partial class InputDefinition + { + /// + /// Initializes a new instance of the InputDefinition class. + /// + public InputDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InputDefinition class. + /// + /// The list of TrackDescriptors which + /// define the metadata and selection of tracks in the input. + public InputDefinition(IList includedTracks = default(IList)) + { + IncludedTracks = includedTracks; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of TrackDescriptors which define the metadata + /// and selection of tracks in the input. + /// + [JsonProperty(PropertyName = "includedTracks")] + public IList IncludedTracks { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputFile.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputFile.cs new file mode 100644 index 000000000000..190edb869d6a --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/InputFile.cs @@ -0,0 +1,60 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An InputDefinition for a single file. TrackSelections are scoped to + /// the file specified. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.InputFile")] + public partial class InputFile : InputDefinition + { + /// + /// Initializes a new instance of the InputFile class. + /// + public InputFile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InputFile class. + /// + /// The list of TrackDescriptors which + /// define the metadata and selection of tracks in the input. + /// Name of the file that this input definition + /// applies to. + public InputFile(IList includedTracks = default(IList), string filename = default(string)) + : base(includedTracks) + { + Filename = filename; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the file that this input definition applies + /// to. + /// + [JsonProperty(PropertyName = "filename")] + public string Filename { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs index 760e95a6de0b..fdf50e587a49 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs @@ -37,12 +37,12 @@ public Job() /// /// The inputs for the Job. /// The outputs for the Job. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The UTC date and time when the customer has /// created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. /// The current state of the job. Possible values @@ -62,7 +62,9 @@ public Job() /// began processing. /// The UTC date and time at which this Job /// finished processing. - public Job(JobInput input, IList outputs, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), JobState state = default(JobState), string description = default(string), System.DateTime lastModified = default(System.DateTime), Priority? priority = default(Priority?), IDictionary correlationData = default(IDictionary), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?)) + /// The system metadata relating to this + /// resource. + public Job(JobInput input, IList outputs, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), JobState state = default(JobState), string description = default(string), System.DateTime lastModified = default(System.DateTime), Priority? priority = default(Priority?), IDictionary correlationData = default(IDictionary), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), SystemData systemData = default(SystemData)) : base(id, name, type) { Created = created; @@ -75,6 +77,7 @@ public Job() CorrelationData = correlationData; StartTime = startTime; EndTime = endTime; + SystemData = systemData; CustomInit(); } @@ -151,6 +154,12 @@ public Job() [JsonProperty(PropertyName = "properties.endTime")] public System.DateTime? EndTime { get; private set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputAsset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputAsset.cs index 37c20bbf6e74..a3bb4b2553f6 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputAsset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputAsset.cs @@ -49,8 +49,11 @@ 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), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string)) - : base(files, start, end, label) + /// Defines a list of InputDefinitions. + /// For each InputDefinition, it defines a list of track selections and + /// related metadata. + public JobInputAsset(string assetName, IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string), IList inputDefinitions = default(IList)) + : base(files, start, end, label, inputDefinitions) { AssetName = assetName; CustomInit(); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputClip.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputClip.cs index 3c88545d610c..ac64b6aaeeb6 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputClip.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputClip.cs @@ -47,12 +47,16 @@ 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), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string)) + /// Defines a list of InputDefinitions. + /// For each InputDefinition, it defines a list of track selections and + /// related metadata. + public JobInputClip(IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string), IList inputDefinitions = default(IList)) { Files = files; Start = start; End = end; Label = label; + InputDefinitions = inputDefinitions; CustomInit(); } @@ -94,5 +98,13 @@ public JobInputClip() [JsonProperty(PropertyName = "label")] public string Label { get; set; } + /// + /// Gets or sets defines a list of InputDefinitions. For each + /// InputDefinition, it defines a list of track selections and related + /// metadata. + /// + [JsonProperty(PropertyName = "inputDefinitions")] + public IList InputDefinitions { get; set; } + } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputHttp.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputHttp.cs index 58ec7053e3e0..913584a8a207 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputHttp.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputHttp.cs @@ -47,12 +47,15 @@ public JobInputHttp() /// 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'. + /// Defines a list of InputDefinitions. + /// For each InputDefinition, it defines a list of track selections and + /// related metadata. /// Base URI for HTTPS job input. It will be /// concatenated with provided file names. If no base uri is given, /// then the provided file list is assumed to be fully qualified uris. /// Maximum length of 4000 characters. - 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) + public JobInputHttp(IList files = default(IList), ClipTime start = default(ClipTime), ClipTime end = default(ClipTime), string label = default(string), IList inputDefinitions = default(IList), string baseUri = default(string)) + : base(files, start, end, label, inputDefinitions) { BaseUri = baseUri; CustomInit(); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputSequence.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputSequence.cs new file mode 100644 index 000000000000..5a5f11df3200 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JobInputSequence.cs @@ -0,0 +1,55 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A Sequence contains an ordered list of Clips where each clip is a + /// JobInput. The Sequence will be treated as a single input. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.JobInputSequence")] + public partial class JobInputSequence : JobInput + { + /// + /// Initializes a new instance of the JobInputSequence class. + /// + public JobInputSequence() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobInputSequence class. + /// + /// JobInputs that make up the timeline. + public JobInputSequence(IList inputs = default(IList)) + { + Inputs = inputs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets jobInputs that make up the timeline. + /// + [JsonProperty(PropertyName = "inputs")] + public IList Inputs { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs index a38f06386afa..467b911d8efb 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs @@ -42,8 +42,9 @@ public JpgFormat() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. public JpgFormat(string filenamePattern) : base(filenamePattern) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs index 58383ec79422..b92a0e33000d 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs @@ -38,12 +38,12 @@ public LiveEvent() /// lives /// Live event input settings. It defines how the /// live event receives input from a contribution encoder. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// A description for the live event. /// Live event preview settings. Preview allows @@ -80,7 +80,9 @@ public LiveEvent() /// The creation time for the live event /// The last modified time of the live /// event. - public LiveEvent(string location, LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), IList transcriptions = default(IList), string provisioningState = default(string), LiveEventResourceState? resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool? useStaticHostname = default(bool?), string hostnamePrefix = default(string), IList streamOptions = default(IList), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) + /// The system metadata relating to this + /// resource. + public LiveEvent(string location, LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), IList transcriptions = default(IList), string provisioningState = default(string), LiveEventResourceState? resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool? useStaticHostname = default(bool?), string hostnamePrefix = default(string), IList streamOptions = default(IList), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?), SystemData systemData = default(SystemData)) : base(location, id, name, type, tags) { Description = description; @@ -96,6 +98,7 @@ public LiveEvent() StreamOptions = streamOptions; Created = created; LastModified = lastModified; + SystemData = systemData; CustomInit(); } @@ -200,6 +203,12 @@ public LiveEvent() [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime? LastModified { get; private set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs index 807353ad7f18..aaf5ac125263 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs @@ -40,12 +40,12 @@ public LiveOutput() /// maximum content length for the rewind window. For example, use /// PT1H30M to indicate 1 hour and 30 minutes of archive /// window. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The description of the live /// output. /// The manifest file name. If not provided, diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs index 8371b85533ed..a607f344d5a5 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs @@ -36,12 +36,12 @@ public MediaService() /// /// The geo-location where the resource /// lives - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// The Media Services account ID. /// The storage accounts for this @@ -51,7 +51,9 @@ public MediaService() /// The account encryption properties. /// The Managed Identity for the Media Services /// account. - public MediaService(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.Guid mediaServiceId = default(System.Guid), IList storageAccounts = default(IList), StorageAuthentication? storageAuthentication = default(StorageAuthentication?), AccountEncryption encryption = default(AccountEncryption), MediaServiceIdentity identity = default(MediaServiceIdentity)) + /// The system metadata relating to this + /// resource. + public MediaService(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.Guid mediaServiceId = default(System.Guid), IList storageAccounts = default(IList), StorageAuthentication? storageAuthentication = default(StorageAuthentication?), AccountEncryption encryption = default(AccountEncryption), MediaServiceIdentity identity = default(MediaServiceIdentity), SystemData systemData = default(SystemData)) : base(location, id, name, type, tags) { MediaServiceId = mediaServiceId; @@ -59,6 +61,7 @@ public MediaService() StorageAuthentication = storageAuthentication; Encryption = encryption; Identity = identity; + SystemData = systemData; CustomInit(); } @@ -97,6 +100,12 @@ public MediaService() [JsonProperty(PropertyName = "identity")] public MediaServiceIdentity Identity { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs index a697749e7599..7d2b9fa3ea12 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs @@ -39,16 +39,19 @@ public MetricSpecification() /// 'Bytes', 'Count', 'Milliseconds' /// The metric aggregation type. Possible /// values include: 'Average', 'Count', 'Total' + /// The metric lock aggregation type. + /// Possible values include: 'Average', 'Count', 'Total' /// Supported aggregation /// types. /// The metric dimensions. - public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), IList supportedAggregationTypes = default(IList), IList dimensions = default(IList)) + public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), MetricAggregationType? lockAggregationType = default(MetricAggregationType?), IList supportedAggregationTypes = default(IList), IList dimensions = default(IList)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; + LockAggregationType = lockAggregationType; SupportedAggregationTypes = supportedAggregationTypes; Dimensions = dimensions; CustomInit(); @@ -91,6 +94,13 @@ public MetricSpecification() [JsonProperty(PropertyName = "aggregationType")] public MetricAggregationType AggregationType { get; private set; } + /// + /// Gets the metric lock aggregation type. Possible values include: + /// 'Average', 'Count', 'Total' + /// + [JsonProperty(PropertyName = "lockAggregationType")] + public MetricAggregationType? LockAggregationType { get; private set; } + /// /// Gets or sets supported aggregation types. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs index 16cb4764cf17..5441e3bd701d 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs @@ -44,8 +44,9 @@ public Mp4Format() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. /// The list of output files to produce. /// Each entry in the list is a set of audio and video layer labels to /// be muxed together . diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs index 5db430525553..aa43af5943e2 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs @@ -48,8 +48,9 @@ public MultiBitrateFormat() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. /// The list of output files to produce. /// Each entry in the list is a set of audio and video layer labels to /// be muxed together . diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs index 5e8c7f7992ea..ae3715aea644 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs @@ -32,10 +32,10 @@ public Overlay() /// /// The label of the job input which is to be /// used as an overlay. The Input must specify exactly one file. You - /// can specify an image file in JPG or PNG formats, or an audio file - /// (such as a WAV, MP3, WMA or M4A file), or a video file. See - /// https://aka.ms/mesformats for the complete list of supported audio - /// and video file formats. + /// can specify an image file in JPG, PNG, GIF or BMP format, or an + /// audio file (such as a WAV, MP3, WMA or M4A file), or a video file. + /// See https://aka.ms/mesformats for the complete list of supported + /// audio and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 /// format. For example, PT05S to start the overlay at 5 seconds into @@ -79,8 +79,8 @@ public Overlay() /// /// Gets or sets the label of the job input which is to be used as an /// overlay. The Input must specify exactly one file. You can specify - /// an image file in JPG or PNG formats, or an audio file (such as a - /// WAV, MP3, WMA or M4A file), or a video file. See + /// an image file in JPG, PNG, GIF or BMP format, or an audio file + /// (such as a WAV, MP3, WMA or M4A file), or a video file. See /// https://aka.ms/mesformats for the complete list of supported audio /// and video file formats. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs index 80881f9b42ec..6e30a5469220 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs @@ -42,8 +42,9 @@ public PngFormat() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. public PngFormat(string filenamePattern) : base(filenamePattern) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs index f2f14245f503..4a536cf6f50a 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs @@ -35,12 +35,12 @@ public PrivateEndpointConnection() /// A collection of /// information about the state of the connection between service /// consumer and provider. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The resource of private end /// point. /// The provisioning state of the diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs index 29a6abef0b78..7fc1edba2285 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs @@ -34,12 +34,12 @@ public PrivateLinkResource() /// /// Initializes a new instance of the PrivateLinkResource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The private link resource group id. /// The private link resource required /// member names. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs index fdef04bebc2b..cde752a8d518 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs @@ -13,9 +13,12 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The resource model definition for a ARM proxy resource. It will have - /// everything other than required location and tags + /// Proxy Resource /// + /// + /// The resource model definition for a Azure Resource Manager proxy + /// resource. It will not have tags and a location + /// public partial class ProxyResource : Resource { /// @@ -29,12 +32,12 @@ public ProxyResource() /// /// Initializes a new instance of the ProxyResource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) : base(id, name, type) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs index 2ecc902265b9..6d3de0bcbeb3 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs @@ -15,6 +15,13 @@ namespace Microsoft.Azure.Management.Media.Models using Newtonsoft.Json; using System.Linq; + /// + /// Resource + /// + /// + /// Common fields that are returned in the response for all Azure Resource + /// Manager resources + /// public partial class Resource : IResource { /// @@ -28,12 +35,12 @@ public Resource() /// /// Initializes a new instance of the Resource class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" public Resource(string id = default(string), string name = default(string), string type = default(string)) { Id = id; @@ -48,7 +55,7 @@ public Resource() partial void CustomInit(); /// - /// Gets fully qualified resource Id for the resource. Ex - + /// Gets fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [JsonProperty(PropertyName = "id")] @@ -61,9 +68,9 @@ public Resource() public string Name { get; private set; } /// - /// Gets the type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// Gets the type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackByAttribute.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackByAttribute.cs new file mode 100644 index 000000000000..9debd9baa1c4 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackByAttribute.cs @@ -0,0 +1,95 @@ +// +// 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; + + /// + /// Select audio tracks from the input by specifying an attribute and an + /// attribute filter. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.SelectAudioTrackByAttribute")] + public partial class SelectAudioTrackByAttribute : AudioTrackDescriptor + { + /// + /// Initializes a new instance of the SelectAudioTrackByAttribute + /// class. + /// + public SelectAudioTrackByAttribute() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SelectAudioTrackByAttribute + /// class. + /// + /// The TrackAttribute to filter the tracks by. + /// Possible values include: 'Bitrate', 'Language' + /// The type of AttributeFilter to apply to the + /// TrackAttribute in order to select the tracks. Possible values + /// include: 'All', 'Top', 'Bottom', 'ValueEquals' + /// Optional designation for single + /// channel audio tracks. Can be used to combine the tracks into + /// stereo or multi-channel audio tracks. Possible values include: + /// 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', + /// 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + /// The value to filter the tracks by. Only + /// used when AttributeFilter.ValueEquals is specified for the Filter + /// property. + public SelectAudioTrackByAttribute(TrackAttribute attribute, AttributeFilter filter, ChannelMapping? channelMapping = default(ChannelMapping?), string filterValue = default(string)) + : base(channelMapping) + { + Attribute = attribute; + Filter = filter; + FilterValue = filterValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the TrackAttribute to filter the tracks by. Possible + /// values include: 'Bitrate', 'Language' + /// + [JsonProperty(PropertyName = "attribute")] + public TrackAttribute Attribute { get; set; } + + /// + /// Gets or sets the type of AttributeFilter to apply to the + /// TrackAttribute in order to select the tracks. Possible values + /// include: 'All', 'Top', 'Bottom', 'ValueEquals' + /// + [JsonProperty(PropertyName = "filter")] + public AttributeFilter Filter { get; set; } + + /// + /// Gets or sets the value to filter the tracks by. Only used when + /// AttributeFilter.ValueEquals is specified for the Filter property. + /// + [JsonProperty(PropertyName = "filterValue")] + public string FilterValue { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackById.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackById.cs new file mode 100644 index 000000000000..64711096d0e1 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectAudioTrackById.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; + + /// + /// Select audio tracks from the input by specifying a track identifier. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.SelectAudioTrackById")] + public partial class SelectAudioTrackById : AudioTrackDescriptor + { + /// + /// Initializes a new instance of the SelectAudioTrackById class. + /// + public SelectAudioTrackById() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SelectAudioTrackById class. + /// + /// Track identifier to select + /// Optional designation for single + /// channel audio tracks. Can be used to combine the tracks into + /// stereo or multi-channel audio tracks. Possible values include: + /// 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', + /// 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + public SelectAudioTrackById(long trackId, ChannelMapping? channelMapping = default(ChannelMapping?)) + : base(channelMapping) + { + TrackId = trackId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets track identifier to select + /// + [JsonProperty(PropertyName = "trackId")] + public long TrackId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackByAttribute.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackByAttribute.cs new file mode 100644 index 000000000000..0c54079aeb5e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackByAttribute.cs @@ -0,0 +1,94 @@ +// +// 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; + + /// + /// Select video tracks from the input by specifying an attribute and an + /// attribute filter. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.SelectVideoTrackByAttribute")] + public partial class SelectVideoTrackByAttribute : VideoTrackDescriptor + { + /// + /// Initializes a new instance of the SelectVideoTrackByAttribute + /// class. + /// + public SelectVideoTrackByAttribute() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SelectVideoTrackByAttribute + /// class. + /// + /// The TrackAttribute to filter the tracks by. + /// Possible values include: 'Bitrate', 'Language' + /// The type of AttributeFilter to apply to the + /// TrackAttribute in order to select the tracks. Possible values + /// include: 'All', 'Top', 'Bottom', 'ValueEquals' + /// The value to filter the tracks by. Only + /// used when AttributeFilter.ValueEquals is specified for the Filter + /// property. For TrackAttribute.Bitrate, this should be an integer + /// value in bits per second (e.g: '1500000'). The + /// TrackAttribute.Language is not supported for video tracks. + public SelectVideoTrackByAttribute(TrackAttribute attribute, AttributeFilter filter, string filterValue = default(string)) + { + Attribute = attribute; + Filter = filter; + FilterValue = filterValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the TrackAttribute to filter the tracks by. Possible + /// values include: 'Bitrate', 'Language' + /// + [JsonProperty(PropertyName = "attribute")] + public TrackAttribute Attribute { get; set; } + + /// + /// Gets or sets the type of AttributeFilter to apply to the + /// TrackAttribute in order to select the tracks. Possible values + /// include: 'All', 'Top', 'Bottom', 'ValueEquals' + /// + [JsonProperty(PropertyName = "filter")] + public AttributeFilter Filter { get; set; } + + /// + /// Gets or sets the value to filter the tracks by. Only used when + /// AttributeFilter.ValueEquals is specified for the Filter property. + /// For TrackAttribute.Bitrate, this should be an integer value in bits + /// per second (e.g: '1500000'). The TrackAttribute.Language is not + /// supported for video tracks. + /// + [JsonProperty(PropertyName = "filterValue")] + public string FilterValue { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackById.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackById.cs new file mode 100644 index 000000000000..99be8ee3455a --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SelectVideoTrackById.cs @@ -0,0 +1,62 @@ +// +// 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; + + /// + /// Select video tracks from the input by specifying a track identifier. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.SelectVideoTrackById")] + public partial class SelectVideoTrackById : VideoTrackDescriptor + { + /// + /// Initializes a new instance of the SelectVideoTrackById class. + /// + public SelectVideoTrackById() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SelectVideoTrackById class. + /// + /// Track identifier to select + public SelectVideoTrackById(long trackId) + { + TrackId = trackId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets track identifier to select + /// + [JsonProperty(PropertyName = "trackId")] + public long TrackId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs index 46deabe4edd2..618d0b96397f 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs @@ -38,12 +38,12 @@ public StreamingEndpoint() /// lives /// The number of scale units. Use the Scale /// operation to adjust this value. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// The streaming endpoint /// description. @@ -71,7 +71,9 @@ public StreamingEndpoint() /// created. /// The exact time the streaming endpoint /// was last modified. - public StreamingEndpoint(string location, int scaleUnits, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), string availabilitySetName = default(string), StreamingEndpointAccessControl accessControl = default(StreamingEndpointAccessControl), long? maxCacheAge = default(long?), IList customHostNames = default(IList), string hostName = default(string), bool? cdnEnabled = default(bool?), string cdnProvider = default(string), string cdnProfile = default(string), string provisioningState = default(string), StreamingEndpointResourceState? resourceState = default(StreamingEndpointResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), System.DateTime? freeTrialEndTime = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) + /// The system metadata relating to this + /// resource. + public StreamingEndpoint(string location, int scaleUnits, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), string availabilitySetName = default(string), StreamingEndpointAccessControl accessControl = default(StreamingEndpointAccessControl), long? maxCacheAge = default(long?), IList customHostNames = default(IList), string hostName = default(string), bool? cdnEnabled = default(bool?), string cdnProvider = default(string), string cdnProfile = default(string), string provisioningState = default(string), StreamingEndpointResourceState? resourceState = default(StreamingEndpointResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), System.DateTime? freeTrialEndTime = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?), SystemData systemData = default(SystemData)) : base(location, id, name, type, tags) { Description = description; @@ -90,6 +92,7 @@ public StreamingEndpoint() FreeTrialEndTime = freeTrialEndTime; Created = created; LastModified = lastModified; + SystemData = systemData; CustomInit(); } @@ -199,6 +202,12 @@ public StreamingEndpoint() [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime? LastModified { get; private set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs index 3cf552b1a19e..67dbe4e8ab36 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs @@ -43,12 +43,12 @@ public StreamingLocator() /// 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', /// 'Predefined_MultiDrmCencStreaming' and /// 'Predefined_MultiDrmStreaming' - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The creation time of the Streaming /// Locator. /// The start time of the Streaming @@ -65,7 +65,9 @@ public StreamingLocator() /// Streaming Locator /// A list of asset or account filters which /// apply to this streaming locator - public StreamingLocator(string assetName, string streamingPolicyName, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), System.Guid? streamingLocatorId = default(System.Guid?), string defaultContentKeyPolicyName = default(string), IList contentKeys = default(IList), string alternativeMediaId = default(string), IList filters = default(IList)) + /// The system metadata relating to this + /// resource. + public StreamingLocator(string assetName, string streamingPolicyName, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), System.Guid? streamingLocatorId = default(System.Guid?), string defaultContentKeyPolicyName = default(string), IList contentKeys = default(IList), string alternativeMediaId = default(string), IList filters = default(IList), SystemData systemData = default(SystemData)) : base(id, name, type) { AssetName = assetName; @@ -78,6 +80,7 @@ public StreamingLocator() ContentKeys = contentKeys; AlternativeMediaId = alternativeMediaId; Filters = filters; + SystemData = systemData; CustomInit(); } @@ -155,6 +158,12 @@ public StreamingLocator() [JsonProperty(PropertyName = "properties.filters")] public IList Filters { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs index f19a86e6b57b..401872215cb8 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs @@ -32,12 +32,12 @@ public StreamingPolicy() /// /// Initializes a new instance of the StreamingPolicy class. /// - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Creation time of Streaming Policy /// Default ContentKey used /// by current Streaming Policy @@ -48,7 +48,9 @@ public StreamingPolicy() /// Configuration of /// CommonEncryptionCbcs /// Configurations of NoEncryption - public StreamingPolicy(string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), string defaultContentKeyPolicyName = default(string), EnvelopeEncryption envelopeEncryption = default(EnvelopeEncryption), CommonEncryptionCenc commonEncryptionCenc = default(CommonEncryptionCenc), CommonEncryptionCbcs commonEncryptionCbcs = default(CommonEncryptionCbcs), NoEncryption noEncryption = default(NoEncryption)) + /// The system metadata relating to this + /// resource. + public StreamingPolicy(string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), string defaultContentKeyPolicyName = default(string), EnvelopeEncryption envelopeEncryption = default(EnvelopeEncryption), CommonEncryptionCenc commonEncryptionCenc = default(CommonEncryptionCenc), CommonEncryptionCbcs commonEncryptionCbcs = default(CommonEncryptionCbcs), NoEncryption noEncryption = default(NoEncryption), SystemData systemData = default(SystemData)) : base(id, name, type) { Created = created; @@ -57,6 +59,7 @@ public StreamingPolicy() CommonEncryptionCenc = commonEncryptionCenc; CommonEncryptionCbcs = commonEncryptionCbcs; NoEncryption = noEncryption; + SystemData = systemData; CustomInit(); } @@ -101,6 +104,12 @@ public StreamingPolicy() [JsonProperty(PropertyName = "properties.noEncryption")] public NoEncryption NoEncryption { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SystemData.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SystemData.cs new file mode 100644 index 000000000000..b265f67bf2d2 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SystemData.cs @@ -0,0 +1,103 @@ +// +// 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; + + /// + /// Metadata pertaining to creation and last modification of the resource. + /// + public partial class SystemData + { + /// + /// Initializes a new instance of the SystemData class. + /// + public SystemData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemData class. + /// + /// The identity that created the + /// resource. + /// The type of identity that created the + /// resource. Possible values include: 'User', 'Application', + /// 'ManagedIdentity', 'Key' + /// The timestamp of resource creation + /// (UTC). + /// The identity that last modified the + /// resource. + /// The type of identity that last + /// modified the resource. Possible values include: 'User', + /// 'Application', 'ManagedIdentity', 'Key' + /// The type of identity that last + /// modified the resource. + public SystemData(string createdBy = default(string), CreatedByType? createdByType = default(CreatedByType?), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), CreatedByType? lastModifiedByType = default(CreatedByType?), System.DateTime? lastModifiedAt = default(System.DateTime?)) + { + CreatedBy = createdBy; + CreatedByType = createdByType; + CreatedAt = createdAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + LastModifiedAt = lastModifiedAt; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the type of identity that created the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "createdByType")] + public CreatedByType? CreatedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource creation (UTC). + /// + [JsonProperty(PropertyName = "createdAt")] + public System.DateTime? CreatedAt { get; set; } + + /// + /// Gets or sets the identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedBy")] + public string LastModifiedBy { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "lastModifiedByType")] + public CreatedByType? LastModifiedByType { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedAt")] + public System.DateTime? LastModifiedAt { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttribute.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttribute.cs new file mode 100644 index 000000000000..ed25e48c7d9b --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttribute.cs @@ -0,0 +1,111 @@ +// +// 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; + + /// + /// Defines values for TrackAttribute. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(TrackAttributeConverter))] + public struct TrackAttribute : System.IEquatable + { + private TrackAttribute(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// The bitrate of the track. + /// + public static readonly TrackAttribute Bitrate = "Bitrate"; + + /// + /// The language of the track. + /// + public static readonly TrackAttribute Language = "Language"; + + + /// + /// Underlying value of enum TrackAttribute + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for TrackAttribute + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type TrackAttribute + /// + public bool Equals(TrackAttribute e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to TrackAttribute + /// + public static implicit operator TrackAttribute(string value) + { + return new TrackAttribute(value); + } + + /// + /// Implicit operator to convert TrackAttribute to string + /// + public static implicit operator string(TrackAttribute e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum TrackAttribute + /// + public static bool operator == (TrackAttribute e1, TrackAttribute e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum TrackAttribute + /// + public static bool operator != (TrackAttribute e1, TrackAttribute e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for TrackAttribute + /// + public override bool Equals(object obj) + { + return obj is TrackAttribute && Equals((TrackAttribute)obj); + } + + /// + /// Returns for hashCode TrackAttribute + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttributeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttributeConverter.cs new file mode 100644 index 000000000000..5c014343a319 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackAttributeConverter.cs @@ -0,0 +1,53 @@ +// +// 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.Reflection; + + /// + /// Defines values for TrackAttribute. + /// + public sealed class TrackAttributeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to TrackAttribute by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(TrackAttribute).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to TrackAttribute. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (TrackAttribute)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for TrackAttribute for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackDescriptor.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackDescriptor.cs new file mode 100644 index 000000000000..9abcee8dac8e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackDescriptor.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 type for all TrackDescriptor types, which define the metadata and + /// selection for tracks that should be processed by a Job + /// + public partial class TrackDescriptor + { + /// + /// Initializes a new instance of the TrackDescriptor class. + /// + public TrackDescriptor() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs index b9632fc43d23..32da580f2660 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs @@ -17,8 +17,12 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The resource model definition for a ARM tracked top level resource + /// Tracked Resource /// + /// + /// The resource model definition for an Azure Resource Manager tracked top + /// level resource which has 'tags' and a 'location' + /// public partial class TrackedResource : Resource { /// @@ -34,12 +38,12 @@ public TrackedResource() /// /// The geo-location where the resource /// lives - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) : base(id, name, type) diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs index d4491c9b7a4f..2ec2a2899fdd 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs @@ -39,25 +39,28 @@ public Transform() /// /// An array of one or more TransformOutputs that /// the Transform should generate. - /// Fully qualified resource Id for the resource. Ex - + /// Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// The name of the resource - /// The type of the resource. Ex- - /// Microsoft.Compute/virtualMachines or - /// Microsoft.Storage/storageAccounts. + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The UTC date and time when the Transform was /// created, in 'YYYY-MM-DDThh:mm:ssZ' format. /// An optional verbose description of the /// Transform. /// The UTC date and time when the Transform /// was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. - public Transform(IList outputs, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), string description = default(string), System.DateTime lastModified = default(System.DateTime)) + /// The system metadata relating to this + /// resource. + public Transform(IList outputs, string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), string description = default(string), System.DateTime lastModified = default(System.DateTime), SystemData systemData = default(SystemData)) : base(id, name, type) { Created = created; Description = description; LastModified = lastModified; Outputs = outputs; + SystemData = systemData; CustomInit(); } @@ -93,6 +96,12 @@ public Transform() [JsonProperty(PropertyName = "properties.outputs")] public IList Outputs { get; set; } + /// + /// Gets the system metadata relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs index da94ba4624b0..e6d385da111b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs @@ -45,8 +45,9 @@ public TransportStreamFormat() /// 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. + /// type of the audio/video codec. {Resolution} - The video resolution. + /// Any unsubstituted macros will be collapsed and removed from the + /// filename. /// The list of output files to produce. /// Each entry in the list is a set of audio and video layer labels to /// be muxed together . diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs index e2b144a0241e..599c23f962d0 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs @@ -32,10 +32,10 @@ public VideoOverlay() /// /// The label of the job input which is to be /// used as an overlay. The Input must specify exactly one file. You - /// can specify an image file in JPG or PNG formats, or an audio file - /// (such as a WAV, MP3, WMA or M4A file), or a video file. See - /// https://aka.ms/mesformats for the complete list of supported audio - /// and video file formats. + /// can specify an image file in JPG, PNG, GIF or BMP format, or an + /// audio file (such as a WAV, MP3, WMA or M4A file), or a video file. + /// See https://aka.ms/mesformats for the complete list of supported + /// audio and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 /// format. For example, PT05S to start the overlay at 5 seconds into diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoTrackDescriptor.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoTrackDescriptor.cs new file mode 100644 index 000000000000..a1e19e9386d3 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoTrackDescriptor.cs @@ -0,0 +1,37 @@ +// +// 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; + + /// + /// A TrackSelection to select video tracks. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.VideoTrackDescriptor")] + public partial class VideoTrackDescriptor : TrackDescriptor + { + /// + /// Initializes a new instance of the VideoTrackDescriptor class. + /// + public VideoTrackDescriptor() + { + CustomInit(); + } + + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs index 58ffbd71eb71..4c0964651247 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs @@ -38,16 +38,5 @@ public static IEnumerable> ApiInfo_AzureMediaServi }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1"; - 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=v2 --reflect-api-versions --opt-in-extensible-enums --tag=package-2020-05 --csharp-sdks-folder=D:\\GitHub\\giakasRepros\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "257f060be8b60d8468584682aa2d71b1faa5f82c"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -