< Summary

Class:Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
Assembly:Microsoft.Azure.Graph.RBAC
File(s):C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\PasswordCredential.cs
Covered lines:3
Uncovered lines:13
Coverable lines:16
Total lines:95
Line coverage:18.7% (3 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_AdditionalProperties()-100%100%
get_StartDate()-0%100%
get_EndDate()-0%100%
get_KeyId()-0%100%
get_Value()-0%100%
get_CustomKeyIdentifier()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\PasswordCredential.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.Graph.RBAC.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Active Directory Password Credential information.
 20    /// </summary>
 21    public partial class PasswordCredential
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the PasswordCredential class.
 25        /// </summary>
 426        public PasswordCredential()
 27        {
 28            CustomInit();
 429        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the PasswordCredential class.
 33        /// </summary>
 34        /// <param name="additionalProperties">Unmatched properties from the
 35        /// message are deserialized this collection</param>
 36        /// <param name="startDate">Start date.</param>
 37        /// <param name="endDate">End date.</param>
 38        /// <param name="keyId">Key ID.</param>
 39        /// <param name="value">Key value.</param>
 40        /// <param name="customKeyIdentifier">Custom Key Identifier</param>
 041        public PasswordCredential(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>
 42        {
 043            AdditionalProperties = additionalProperties;
 044            StartDate = startDate;
 045            EndDate = endDate;
 046            KeyId = keyId;
 047            Value = value;
 048            CustomKeyIdentifier = customKeyIdentifier;
 49            CustomInit();
 050        }
 51
 52        /// <summary>
 53        /// An initialization method that performs custom operations like setting defaults
 54        /// </summary>
 55        partial void CustomInit();
 56
 57        /// <summary>
 58        /// Gets or sets unmatched properties from the message are deserialized
 59        /// this collection
 60        /// </summary>
 61        [JsonExtensionData]
 1262        public IDictionary<string, object> AdditionalProperties { get; set; }
 63
 64        /// <summary>
 65        /// Gets or sets start date.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "startDate")]
 068        public System.DateTime? StartDate { get; set; }
 69
 70        /// <summary>
 71        /// Gets or sets end date.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "endDate")]
 074        public System.DateTime? EndDate { get; set; }
 75
 76        /// <summary>
 77        /// Gets or sets key ID.
 78        /// </summary>
 79        [JsonProperty(PropertyName = "keyId")]
 080        public string KeyId { get; set; }
 81
 82        /// <summary>
 83        /// Gets or sets key value.
 84        /// </summary>
 85        [JsonProperty(PropertyName = "value")]
 086        public string Value { get; set; }
 87
 88        /// <summary>
 89        /// Gets or sets custom Key Identifier
 90        /// </summary>
 91        [JsonProperty(PropertyName = "customKeyIdentifier")]
 092        public byte[] CustomKeyIdentifier { get; set; }
 93
 94    }
 95}