< Summary

Class:Azure.ResourceManager.Network.Models.IpsecEncryption
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IpsecEncryption.cs
Covered lines:6
Uncovered lines:12
Coverable lines:18
Total lines:71
Line coverage:33.3% (6 of 18)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_None()-0%100%
get_DES()-0%100%
get_DES3()-0%100%
get_AES128()-100%100%
get_AES192()-0%100%
get_AES256()-0%100%
get_Gcmaes128()-0%100%
get_Gcmaes192()-0%100%
get_Gcmaes256()-100%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IpsecEncryption.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.ComponentModel;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> The IPSec encryption algorithm (IKE phase 1). </summary>
 14    public readonly partial struct IpsecEncryption : IEquatable<IpsecEncryption>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="IpsecEncryption"/> values are the same. </summary>
 19        public IpsecEncryption(string value)
 20        {
 3421            _value = value ?? throw new ArgumentNullException(nameof(value));
 3422        }
 23
 24        private const string NoneValue = "None";
 25        private const string DESValue = "DES";
 26        private const string DES3Value = "DES3";
 27        private const string AES128Value = "AES128";
 28        private const string AES192Value = "AES192";
 29        private const string AES256Value = "AES256";
 30        private const string Gcmaes128Value = "GCMAES128";
 31        private const string Gcmaes192Value = "GCMAES192";
 32        private const string Gcmaes256Value = "GCMAES256";
 33
 34        /// <summary> None. </summary>
 035        public static IpsecEncryption None { get; } = new IpsecEncryption(NoneValue);
 36        /// <summary> DES. </summary>
 037        public static IpsecEncryption DES { get; } = new IpsecEncryption(DESValue);
 38        /// <summary> DES3. </summary>
 039        public static IpsecEncryption DES3 { get; } = new IpsecEncryption(DES3Value);
 40        /// <summary> AES128. </summary>
 641        public static IpsecEncryption AES128 { get; } = new IpsecEncryption(AES128Value);
 42        /// <summary> AES192. </summary>
 043        public static IpsecEncryption AES192 { get; } = new IpsecEncryption(AES192Value);
 44        /// <summary> AES256. </summary>
 045        public static IpsecEncryption AES256 { get; } = new IpsecEncryption(AES256Value);
 46        /// <summary> GCMAES128. </summary>
 047        public static IpsecEncryption Gcmaes128 { get; } = new IpsecEncryption(Gcmaes128Value);
 48        /// <summary> GCMAES192. </summary>
 049        public static IpsecEncryption Gcmaes192 { get; } = new IpsecEncryption(Gcmaes192Value);
 50        /// <summary> GCMAES256. </summary>
 651        public static IpsecEncryption Gcmaes256 { get; } = new IpsecEncryption(Gcmaes256Value);
 52        /// <summary> Determines if two <see cref="IpsecEncryption"/> values are the same. </summary>
 053        public static bool operator ==(IpsecEncryption left, IpsecEncryption right) => left.Equals(right);
 54        /// <summary> Determines if two <see cref="IpsecEncryption"/> values are not the same. </summary>
 055        public static bool operator !=(IpsecEncryption left, IpsecEncryption right) => !left.Equals(right);
 56        /// <summary> Converts a string to a <see cref="IpsecEncryption"/>. </summary>
 057        public static implicit operator IpsecEncryption(string value) => new IpsecEncryption(value);
 58
 59        /// <inheritdoc />
 60        [EditorBrowsable(EditorBrowsableState.Never)]
 061        public override bool Equals(object obj) => obj is IpsecEncryption other && Equals(other);
 62        /// <inheritdoc />
 863        public bool Equals(IpsecEncryption other) => string.Equals(_value, other._value, StringComparison.InvariantCultu
 64
 65        /// <inheritdoc />
 66        [EditorBrowsable(EditorBrowsableState.Never)]
 067        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 68        /// <inheritdoc />
 1669        public override string ToString() => _value;
 70    }
 71}