< Summary

Class:Microsoft.Azure.Graph.RBAC.Models.DirectoryObject
Assembly:Microsoft.Azure.Graph.RBAC
File(s):C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\DirectoryObject.cs
Covered lines:3
Uncovered lines:7
Coverable lines:10
Total lines:72
Line coverage:30% (3 of 10)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_AdditionalProperties()-0%100%
get_ObjectId()-100%100%
get_DeletionTimestamp()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\DirectoryObject.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    /// Represents an Azure Active Directory object.
 20    /// </summary>
 21    public partial class DirectoryObject
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the DirectoryObject class.
 25        /// </summary>
 183026        public DirectoryObject()
 27        {
 28            CustomInit();
 183029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the DirectoryObject class.
 33        /// </summary>
 34        /// <param name="additionalProperties">Unmatched properties from the
 35        /// message are deserialized this collection</param>
 36        /// <param name="objectId">The object ID.</param>
 37        /// <param name="deletionTimestamp">The time at which the directory
 38        /// object was deleted.</param>
 039        public DirectoryObject(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>), 
 40        {
 041            AdditionalProperties = additionalProperties;
 042            ObjectId = objectId;
 043            DeletionTimestamp = deletionTimestamp;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets or sets unmatched properties from the message are deserialized
 54        /// this collection
 55        /// </summary>
 56        [JsonExtensionData]
 057        public IDictionary<string, object> AdditionalProperties { get; set; }
 58
 59        /// <summary>
 60        /// Gets the object ID.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "objectId")]
 228663        public string ObjectId { get; private set; }
 64
 65        /// <summary>
 66        /// Gets the time at which the directory object was deleted.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "deletionTimestamp")]
 069        public System.DateTime? DeletionTimestamp { get; private set; }
 70
 71    }
 72}