< Summary

Class:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.Operation
Assembly:Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\Operation.cs
Covered lines:0
Uncovered lines:18
Coverable lines:18
Total lines:106
Line coverage:0% (0 of 18)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_OperationState()-0%100%
get_CreatedTimestamp()-0%100%
get_LastActionTimestamp()-0%100%
get_ResourceLocation()-0%100%
get_UserId()-0%100%
get_OperationId()-0%100%
get_ErrorResponse()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Knowledge.QnAMaker\src\Generated\Models\Operation.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.Knowledge.QnAMaker.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Record to track long running operation.
 18    /// </summary>
 19    public partial class Operation
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the Operation class.
 23        /// </summary>
 024        public Operation()
 25        {
 26            CustomInit();
 027        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the Operation class.
 31        /// </summary>
 32        /// <param name="operationState">Operation state. Possible values
 33        /// include: 'Failed', 'NotStarted', 'Running', 'Succeeded'</param>
 34        /// <param name="createdTimestamp">Timestamp when the operation was
 35        /// created.</param>
 36        /// <param name="lastActionTimestamp">Timestamp when the current state
 37        /// was entered.</param>
 38        /// <param name="resourceLocation">Relative URI to the target resource
 39        /// location for completed resources.</param>
 40        /// <param name="userId">User Id</param>
 41        /// <param name="operationId">Operation Id.</param>
 42        /// <param name="errorResponse">Error details in case of
 43        /// failures.</param>
 044        public Operation(string operationState = default(string), string createdTimestamp = default(string), string last
 45        {
 046            OperationState = operationState;
 047            CreatedTimestamp = createdTimestamp;
 048            LastActionTimestamp = lastActionTimestamp;
 049            ResourceLocation = resourceLocation;
 050            UserId = userId;
 051            OperationId = operationId;
 052            ErrorResponse = errorResponse;
 53            CustomInit();
 054        }
 55
 56        /// <summary>
 57        /// An initialization method that performs custom operations like setting defaults
 58        /// </summary>
 59        partial void CustomInit();
 60
 61        /// <summary>
 62        /// Gets or sets operation state. Possible values include: 'Failed',
 63        /// 'NotStarted', 'Running', 'Succeeded'
 64        /// </summary>
 65        [JsonProperty(PropertyName = "operationState")]
 066        public string OperationState { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets timestamp when the operation was created.
 70        /// </summary>
 71        [JsonProperty(PropertyName = "createdTimestamp")]
 072        public string CreatedTimestamp { get; set; }
 73
 74        /// <summary>
 75        /// Gets or sets timestamp when the current state was entered.
 76        /// </summary>
 77        [JsonProperty(PropertyName = "lastActionTimestamp")]
 078        public string LastActionTimestamp { get; set; }
 79
 80        /// <summary>
 81        /// Gets or sets relative URI to the target resource location for
 82        /// completed resources.
 83        /// </summary>
 84        [JsonProperty(PropertyName = "resourceLocation")]
 085        public string ResourceLocation { get; set; }
 86
 87        /// <summary>
 88        /// Gets or sets user Id
 89        /// </summary>
 90        [JsonProperty(PropertyName = "userId")]
 091        public string UserId { get; set; }
 92
 93        /// <summary>
 94        /// Gets or sets operation Id.
 95        /// </summary>
 96        [JsonProperty(PropertyName = "operationId")]
 097        public string OperationId { get; set; }
 98
 99        /// <summary>
 100        /// Gets or sets error details in case of failures.
 101        /// </summary>
 102        [JsonProperty(PropertyName = "errorResponse")]
 0103        public ErrorResponse ErrorResponse { get; set; }
 104
 105    }
 106}