< Summary

Class:Azure.ResourceManager.KeyVault.Models.VaultPatchProperties
Assembly:Azure.ResourceManager.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchProperties.cs
C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchProperties.Serialization.cs
Covered lines:0
Uncovered lines:49
Coverable lines:49
Total lines:120
Line coverage:0% (0 of 49)
Covered branches:0
Total branches:22
Branch coverage:0% (0 of 22)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
get_TenantId()-0%100%
get_Sku()-0%100%
get_AccessPolicies()-0%100%
get_EnabledForDeployment()-0%100%
get_EnabledForDiskEncryption()-0%100%
get_EnabledForTemplateDeployment()-0%100%
get_EnableSoftDelete()-0%100%
get_CreateMode()-0%100%
get_EnablePurgeProtection()-0%100%
get_NetworkAcls()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchProperties.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Collections.Generic;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.KeyVault.Models
 13{
 14    /// <summary> Properties of the vault. </summary>
 15    public partial class VaultPatchProperties
 16    {
 17        /// <summary> Initializes a new instance of VaultPatchProperties. </summary>
 018        public VaultPatchProperties()
 19        {
 020            AccessPolicies = new ChangeTrackingList<AccessPolicyEntry>();
 021        }
 22
 23        /// <summary> The Azure Active Directory tenant ID that should be used for authenticating requests to the key va
 024        public Guid? TenantId { get; set; }
 25        /// <summary> SKU details. </summary>
 026        public Sku Sku { get; set; }
 27        /// <summary> An array of 0 to 16 identities that have access to the key vault. All identities in the array must
 028        public IList<AccessPolicyEntry> AccessPolicies { get; }
 29        /// <summary> Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored a
 030        public bool? EnabledForDeployment { get; set; }
 31        /// <summary> Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault 
 032        public bool? EnabledForDiskEncryption { get; set; }
 33        /// <summary> Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key v
 034        public bool? EnabledForTemplateDeployment { get; set; }
 35        /// <summary> Property to specify whether the &apos;soft delete&apos; functionality is enabled for this key vaul
 036        public bool? EnableSoftDelete { get; set; }
 37        /// <summary> The vault&apos;s create mode to indicate whether the vault need to be recovered or not. </summary>
 038        public CreateMode? CreateMode { get; set; }
 39        /// <summary> Property specifying whether protection against purge is enabled for this vault. Setting this prope
 040        public bool? EnablePurgeProtection { get; set; }
 41        /// <summary> A collection of rules governing the accessibility of the vault from specific network locations. </
 042        public NetworkRuleSet NetworkAcls { get; set; }
 43    }
 44}

C:\Git\azure-sdk-for-net\sdk\keyvault\Azure.ResourceManager.KeyVault\src\Generated\Models\VaultPatchProperties.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.KeyVault.Models
 12{
 13    public partial class VaultPatchProperties : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            if (Optional.IsDefined(TenantId))
 19            {
 020                writer.WritePropertyName("tenantId");
 021                writer.WriteStringValue(TenantId.Value);
 22            }
 023            if (Optional.IsDefined(Sku))
 24            {
 025                writer.WritePropertyName("sku");
 026                writer.WriteObjectValue(Sku);
 27            }
 028            if (Optional.IsCollectionDefined(AccessPolicies))
 29            {
 030                writer.WritePropertyName("accessPolicies");
 031                writer.WriteStartArray();
 032                foreach (var item in AccessPolicies)
 33                {
 034                    writer.WriteObjectValue(item);
 35                }
 036                writer.WriteEndArray();
 37            }
 038            if (Optional.IsDefined(EnabledForDeployment))
 39            {
 040                writer.WritePropertyName("enabledForDeployment");
 041                writer.WriteBooleanValue(EnabledForDeployment.Value);
 42            }
 043            if (Optional.IsDefined(EnabledForDiskEncryption))
 44            {
 045                writer.WritePropertyName("enabledForDiskEncryption");
 046                writer.WriteBooleanValue(EnabledForDiskEncryption.Value);
 47            }
 048            if (Optional.IsDefined(EnabledForTemplateDeployment))
 49            {
 050                writer.WritePropertyName("enabledForTemplateDeployment");
 051                writer.WriteBooleanValue(EnabledForTemplateDeployment.Value);
 52            }
 053            if (Optional.IsDefined(EnableSoftDelete))
 54            {
 055                writer.WritePropertyName("enableSoftDelete");
 056                writer.WriteBooleanValue(EnableSoftDelete.Value);
 57            }
 058            if (Optional.IsDefined(CreateMode))
 59            {
 060                writer.WritePropertyName("createMode");
 061                writer.WriteStringValue(CreateMode.Value.ToSerialString());
 62            }
 063            if (Optional.IsDefined(EnablePurgeProtection))
 64            {
 065                writer.WritePropertyName("enablePurgeProtection");
 066                writer.WriteBooleanValue(EnablePurgeProtection.Value);
 67            }
 068            if (Optional.IsDefined(NetworkAcls))
 69            {
 070                writer.WritePropertyName("networkAcls");
 071                writer.WriteObjectValue(NetworkAcls);
 72            }
 073            writer.WriteEndObject();
 074        }
 75    }
 76}