< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Code()-0%100%
get_Message()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ContentModerator\src\Generated\Models\Error.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.Linq;
 11
 12    /// <summary>
 13    /// Error body.
 14    /// </summary>
 15    public partial class Error
 16    {
 17        /// <summary>
 18        /// Initializes a new instance of the Error class.
 19        /// </summary>
 020        public Error()
 21        {
 22            CustomInit();
 023        }
 24
 25        /// <summary>
 26        /// Initializes a new instance of the Error class.
 27        /// </summary>
 028        public Error(string code = default(string), string message = default(string))
 29        {
 030            Code = code;
 031            Message = message;
 32            CustomInit();
 033        }
 34
 35        /// <summary>
 36        /// An initialization method that performs custom operations like setting defaults
 37        /// </summary>
 38        partial void CustomInit();
 39
 40        /// <summary>
 41        /// </summary>
 42        [JsonProperty(PropertyName = "Code")]
 043        public string Code { get; set; }
 44
 45        /// <summary>
 46        /// </summary>
 47        [JsonProperty(PropertyName = "Message")]
 048        public string Message { get; set; }
 49
 50    }
 51}