< Summary

Class:Microsoft.Azure.CognitiveServices.ContentModerator.Models.Body
Assembly:Microsoft.Azure.CognitiveServices.Vision.ContentModerator
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\Body.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:62
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Description()-0%100%
get_Metadata()-0%100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2// Code generated by Microsoft (R) AutoRest Code Generator.
 3// Changes may cause incorrect behavior and will be lost if the code is
 4// regenerated.
 5// </auto-generated>
 6
 7namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models
 8{
 9    using Newtonsoft.Json;
 10    using System.Collections;
 11    using System.Collections.Generic;
 12    using System.Linq;
 13
 14    public partial class Body
 15    {
 16        /// <summary>
 17        /// Initializes a new instance of the Body class.
 18        /// </summary>
 019        public Body()
 20        {
 21            CustomInit();
 022        }
 23
 24        /// <summary>
 25        /// Initializes a new instance of the Body class.
 26        /// </summary>
 27        /// <param name="name">Name of the list.</param>
 28        /// <param name="description">Description of the list.</param>
 29        /// <param name="metadata">Metadata of the list.</param>
 030        public Body(string name = default(string), string description = default(string), IDictionary<string, string> met
 31        {
 032            Name = name;
 033            Description = description;
 034            Metadata = metadata;
 35            CustomInit();
 036        }
 37
 38        /// <summary>
 39        /// An initialization method that performs custom operations like setting defaults
 40        /// </summary>
 41        partial void CustomInit();
 42
 43        /// <summary>
 44        /// Gets or sets name of the list.
 45        /// </summary>
 46        [JsonProperty(PropertyName = "Name")]
 047        public string Name { get; set; }
 48
 49        /// <summary>
 50        /// Gets or sets description of the list.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "Description")]
 053        public string Description { get; set; }
 54
 55        /// <summary>
 56        /// Gets or sets metadata of the list.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "Metadata")]
 059        public IDictionary<string, string> Metadata { get; set; }
 60
 61    }
 62}