< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ImageMetadataUpdateEntry
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageMetadataUpdateEntry.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:73
Line coverage:30% (3 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_ImageId()-0%100%
get_Status()-0%100%
get_Metadata()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ImageMetadataUpdateEntry.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.CustomVision.Training.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Entry associating a metadata to an image.
 20    /// </summary>
 21    public partial class ImageMetadataUpdateEntry
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ImageMetadataUpdateEntry class.
 25        /// </summary>
 226        public ImageMetadataUpdateEntry()
 27        {
 28            CustomInit();
 229        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ImageMetadataUpdateEntry class.
 33        /// </summary>
 34        /// <param name="imageId">Id of the image.</param>
 35        /// <param name="status">Status of the metadata update. Possible values
 36        /// include: 'OK', 'ErrorImageNotFound', 'ErrorLimitExceed',
 37        /// 'ErrorUnknown'</param>
 38        /// <param name="metadata">Metadata of the image.</param>
 039        public ImageMetadataUpdateEntry(System.Guid imageId = default(System.Guid), string status = default(string), IDi
 40        {
 041            ImageId = imageId;
 042            Status = status;
 043            Metadata = metadata;
 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 id of the image.
 54        /// </summary>
 55        [JsonProperty(PropertyName = "imageId")]
 056        public System.Guid ImageId { get; set; }
 57
 58        /// <summary>
 59        /// Gets or sets status of the metadata update. Possible values
 60        /// include: 'OK', 'ErrorImageNotFound', 'ErrorLimitExceed',
 61        /// 'ErrorUnknown'
 62        /// </summary>
 63        [JsonProperty(PropertyName = "status")]
 064        public string Status { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets metadata of the image.
 68        /// </summary>
 69        [JsonProperty(PropertyName = "metadata")]
 1070        public IDictionary<string, string> Metadata { get; set; }
 71
 72    }
 73}