< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.Face.Models.MetaDataContract
Assembly:Microsoft.Azure.CognitiveServices.Vision.Face
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\MetaDataContract.cs
Covered lines:3
Uncovered lines:5
Coverable lines:8
Total lines:70
Line coverage:37.5% (3 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_RecognitionModel()-100%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\MetaDataContract.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// A combination of user defined name and user specified data and
 18    /// recognition model name for largePersonGroup/personGroup, and
 19    /// largeFaceList/faceList.
 20    /// </summary>
 21    public partial class MetaDataContract : NameAndUserDataContract
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the MetaDataContract class.
 25        /// </summary>
 3226        public MetaDataContract()
 27        {
 28            CustomInit();
 3229        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the MetaDataContract class.
 33        /// </summary>
 34        /// <param name="name">User defined name, maximum length is
 35        /// 128.</param>
 36        /// <param name="userData">User specified data. Length should not
 37        /// exceed 16KB.</param>
 38        /// <param name="recognitionModel">Possible values include:
 39        /// 'recognition_01', 'recognition_02'</param>
 40        public MetaDataContract(string name = default(string), string userData = default(string), string recognitionMode
 041            : base(name, userData)
 42        {
 043            RecognitionModel = recognitionModel;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets or sets possible values include: 'recognition_01',
 54        /// 'recognition_02'
 55        /// </summary>
 56        [JsonProperty(PropertyName = "recognitionModel")]
 4857        public string RecognitionModel { get; set; }
 58
 59        /// <summary>
 60        /// Validate the object.
 61        /// </summary>
 62        /// <exception cref="Rest.ValidationException">
 63        /// Thrown if validation fails
 64        /// </exception>
 65        public override void Validate()
 66        {
 067            base.Validate();
 068        }
 69    }
 70}