< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models.ReadOperationResult
Assembly:Microsoft.Azure.CognitiveServices.Vision.ComputerVision
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ReadOperationResult.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:93
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_Status()-0%100%
get_CreatedDateTime()-0%100%
get_LastUpdatedDateTime()-0%100%
get_AnalyzeResult()-0%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\Generated\Models\ReadOperationResult.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.ComputerVision.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// OCR result of the read operation.
 18    /// </summary>
 19    public partial class ReadOperationResult
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ReadOperationResult class.
 23        /// </summary>
 024        public ReadOperationResult()
 25        {
 26            CustomInit();
 027        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ReadOperationResult class.
 31        /// </summary>
 32        /// <param name="status">Status of the read operation. Possible values
 33        /// include: 'notStarted', 'running', 'failed', 'succeeded'</param>
 34        /// <param name="createdDateTime">Get UTC date time the batch operation
 35        /// was submitted.</param>
 36        /// <param name="lastUpdatedDateTime">Get last updated UTC date time of
 37        /// this batch operation.</param>
 38        /// <param name="analyzeResult">Analyze batch operation result.</param>
 039        public ReadOperationResult(OperationStatusCodes status = default(OperationStatusCodes), string createdDateTime =
 40        {
 041            Status = status;
 042            CreatedDateTime = createdDateTime;
 043            LastUpdatedDateTime = lastUpdatedDateTime;
 044            AnalyzeResult = analyzeResult;
 45            CustomInit();
 046        }
 47
 48        /// <summary>
 49        /// An initialization method that performs custom operations like setting defaults
 50        /// </summary>
 51        partial void CustomInit();
 52
 53        /// <summary>
 54        /// Gets or sets status of the read operation. Possible values include:
 55        /// 'notStarted', 'running', 'failed', 'succeeded'
 56        /// </summary>
 57        [JsonProperty(PropertyName = "status")]
 058        public OperationStatusCodes Status { get; set; }
 59
 60        /// <summary>
 61        /// Gets or sets get UTC date time the batch operation was submitted.
 62        /// </summary>
 63        [JsonProperty(PropertyName = "createdDateTime")]
 064        public string CreatedDateTime { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets get last updated UTC date time of this batch
 68        /// operation.
 69        /// </summary>
 70        [JsonProperty(PropertyName = "lastUpdatedDateTime")]
 071        public string LastUpdatedDateTime { get; set; }
 72
 73        /// <summary>
 74        /// Gets or sets analyze batch operation result.
 75        /// </summary>
 76        [JsonProperty(PropertyName = "analyzeResult")]
 077        public AnalyzeResults AnalyzeResult { get; set; }
 78
 79        /// <summary>
 80        /// Validate the object.
 81        /// </summary>
 82        /// <exception cref="Rest.ValidationException">
 83        /// Thrown if validation fails
 84        /// </exception>
 85        public virtual void Validate()
 86        {
 087            if (AnalyzeResult != null)
 88            {
 089                AnalyzeResult.Validate();
 90            }
 091        }
 92    }
 93}