< Summary

Class:Microsoft.Azure.Graph.RBAC.Models.KeyCredentialsUpdateParameters
Assembly:Microsoft.Azure.Graph.RBAC
File(s):C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\KeyCredentialsUpdateParameters.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:69
Line coverage:0% (0 of 9)
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_Value()-0%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\Models\KeyCredentialsUpdateParameters.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 Microsoft.Rest;
 14    using Newtonsoft.Json;
 15    using System.Collections;
 16    using System.Collections.Generic;
 17    using System.Linq;
 18
 19    /// <summary>
 20    /// Request parameters for a KeyCredentials update operation
 21    /// </summary>
 22    public partial class KeyCredentialsUpdateParameters
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the KeyCredentialsUpdateParameters
 26        /// class.
 27        /// </summary>
 028        public KeyCredentialsUpdateParameters()
 29        {
 30            CustomInit();
 031        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the KeyCredentialsUpdateParameters
 35        /// class.
 36        /// </summary>
 37        /// <param name="value">A collection of KeyCredentials.</param>
 038        public KeyCredentialsUpdateParameters(IList<KeyCredential> value)
 39        {
 040            Value = value;
 41            CustomInit();
 042        }
 43
 44        /// <summary>
 45        /// An initialization method that performs custom operations like setting defaults
 46        /// </summary>
 47        partial void CustomInit();
 48
 49        /// <summary>
 50        /// Gets or sets a collection of KeyCredentials.
 51        /// </summary>
 52        [JsonProperty(PropertyName = "value")]
 053        public IList<KeyCredential> Value { get; set; }
 54
 55        /// <summary>
 56        /// Validate the object.
 57        /// </summary>
 58        /// <exception cref="ValidationException">
 59        /// Thrown if validation fails
 60        /// </exception>
 61        public virtual void Validate()
 62        {
 063            if (Value == null)
 64            {
 065                throw new ValidationException(ValidationRules.CannotBeNull, "Value");
 66            }
 067        }
 68    }
 69}