< Summary

Class:Microsoft.Azure.EventGrid.Models.DeviceTwinInfoX509Thumbprint
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\DeviceTwinInfoX509Thumbprint.cs
Covered lines:2
Uncovered lines:6
Coverable lines:8
Total lines:66
Line coverage:25% (2 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_PrimaryThumbprint()-0%100%
get_SecondaryThumbprint()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\DeviceTwinInfoX509Thumbprint.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.EventGrid.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// The thumbprint is a unique value for the x509 certificate, commonly
 18    /// used to find a particular certificate in a certificate store. The
 19    /// thumbprint is dynamically generated using the SHA1 algorithm, and does
 20    /// not physically exist in the certificate.
 21    /// </summary>
 22    public partial class DeviceTwinInfoX509Thumbprint
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the DeviceTwinInfoX509Thumbprint
 26        /// class.
 27        /// </summary>
 228        public DeviceTwinInfoX509Thumbprint()
 29        {
 30            CustomInit();
 231        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the DeviceTwinInfoX509Thumbprint
 35        /// class.
 36        /// </summary>
 37        /// <param name="primaryThumbprint">Primary thumbprint for the x509
 38        /// certificate.</param>
 39        /// <param name="secondaryThumbprint">Secondary thumbprint for the x509
 40        /// certificate.</param>
 041        public DeviceTwinInfoX509Thumbprint(string primaryThumbprint = default(string), string secondaryThumbprint = def
 42        {
 043            PrimaryThumbprint = primaryThumbprint;
 044            SecondaryThumbprint = secondaryThumbprint;
 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 primary thumbprint for the x509 certificate.
 55        /// </summary>
 56        [JsonProperty(PropertyName = "primaryThumbprint")]
 057        public string PrimaryThumbprint { get; set; }
 58
 59        /// <summary>
 60        /// Gets or sets secondary thumbprint for the x509 certificate.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "secondaryThumbprint")]
 063        public string SecondaryThumbprint { get; set; }
 64
 65    }
 66}